Zstone19 / TempMap

A package following Stone & Shen (2023) for AGN accretion disk temperature fluctuation maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TempMap

A package following Stone & Shen (2023) in using the method described in Neustadt & Kochanek (2022) (NK22) to form temperature perturbation maps for AGN accretion disks. The methodology is originally described in NK22, with small adjustments in Stone & Shen (2023).

The repository is organized as follows:

  • /src - The python package
  • /Examples - Example Jupyter notebooks detailing three use cases for the package (for both simulated and real data)
  • /Paper - Results from Stone & Shen (2023), including GIFs of fit spectra

Alt Text

The Algorithm

Temperature perturbations generated within the accretion disks of AGN, near the supermassive black hole (SMBH), can generate changes in observed flux in the optical wavelengths. Assuming a Shakura-Sunayev thin disk (Shakura & Sunayev, 1973), axisyemmetric raduation, and a linear relationsship between perturbations in temperature $\delta T$ and flux $\delta F_\lambda$, flux variability can be derived from an integral of temperature perturbations over the entire disk. Doing this for multiple observed times $t_d$ produces a map of flux perturbations as a function of wavelength $\lambda$ and time. This process can be inverted to use input flux data to produce output temperature perturbation maps, in terms of radius and time. In addition, for large AGN, there is a time delay between emission at different points in the disk which could arrive at the same time. This "smearing effect" is also taken into account in the model.

To produce output temperature perturbation maps, one needs to use multi-wavelength and multi-epoch AGN variability data. NK22 use multi-wavelength light curves for local AGN, while we use multi-epoch SDSS-RM spectra for a range of different redshifts. In this package, there are a number of different test cases that can be used to test the algorithm, including fast, lamppost-like, outgoing waves (outgo) and slow, inward-moving wave-like perturbations (ingo) (see /Examples/SimData_Tutorial.ipynb). The package can also be used with user-input data (see /Examples/RealData_Tutorial.ipynb). Both of these examples assume that that each spetrum is sampled at the same wavelengths $\lambda$. For arbitrarily sampled data, there is another test of the algorithm using light curve data from NGC5548 (see /Examples/ArbitrarilySampledData_Tutorial.ipynb).

The algorithm can output a temperature map for an arbitrary number of specified "smoothing" parameters $\xi$:

and also show the quality of the fit to the data with an animated GIF:

Alt Text

Installation

The package temp-map can be installed through pip:

    pip install .

In some cases, the Gram matrix ($W^T W$) creation algorithm may not be able to find Intel's MKL library. In this case, the user may need to install the mkl python package through a different channel. This can quickly be done in an anaconda environment:

    conda install -c intel mkl=2021.4.0

The sparse linear algebra solver PyPardiso may also fail in some situations. This is noted as an issue in PyPardiso, and is due to intel-openmp not recognizing the mkl library. The easiest way to fix this is to reinstall certain releases of the two packages. As an example, here is a way to install them into an anaconda environment:

    conda install -c conda-forge intel-openmp=2021.4.0
    conda install -c intel mkl=2021.4.0

Data and Contact

ArXiv

MNRAS

All data for the SDSS-RM sample used in this paper (including spectra and AGN paramaters), as well as all output temperature maps are located on Zenodo

For any questions or comments, reach out to Zachary Stone or Yue Shen

About

A package following Stone & Shen (2023) for AGN accretion disk temperature fluctuation maps

License:Other


Languages

Language:Python 100.0%