This repository contains all of the data and code needed to reproduce the paper Observational nonstationarity of AGN variability - The only way to go is down!, by N. Caplar, T. Pena, S. Johnson and J. Greene, accepted to ApJL.
The continuing work in progress for this project is at AGN-Going-Down-Extended.
The main file is Jupyter notebook AGN-Going-Down.ipynb
which contains all of the analysis and instructions. All of the figures generated in the notebook are available in separate folders. See the contents below for the full overview of the repository and, in particular, the overview of AGN-Going-Down.ipynb
.
- Folder
Data
: contains all the data needed to reproduce all of the results. This includes different input AGN catalogs, filter curves, and outputs from SQL queries. This allows you to run all of the analysis in the notebook without any external requests or queries. The only data missing is the catalog of non-variable stars from Stripe 82 - instructions are provided on how to retrieve that data in the notebook - Folder
Figures_pdf
: contains all of the figures from the paper and additional figures in pdf format - Folder
Figures_pdf
: contains all of the figures from the paper and additional figures in png format CatalogCreator_custom.py
: python script to create SQL query for the HSC databaseAGN-Going-Down.ipynb
: main Jupiter notebook containing all of the routinesNonStationarity.py
: module with useful functions for the analysisNonstationarity_of_AGN_variability__ApJL.pdf
: current (ArXiv) version of the manuscript
In sections 1-3 we construct queries, record the outputs and then process and summarize the results from different sources. Outputs from these sections are numpy arrays that are then imported to create scientific figures in sections 5-9. Section 4 contains our theoretical modeling analysis, while sections 10 and 11 contain additional checks of our results. Each section can be run in standalone fashion, i.e., each section will only depend on the data that can be imported at the start of the section (Given that many sections depend on the same data, some arrays are loaded multiple times in the notebook).
-
Collecting the data
- Finding Ra/Dec coordinate of SDSS QSO
- Querying HSC database
- Constructing ``fake AGN'' sample (control sample)
- Querying HSC database for ``fake AGN''(control sample)
- Adding time-separation information
- Finding patch information for each AGN
- Finding out time difference between observations
-
Analysis of the output from HSC for QSO selected in SDSS
- Initial analysis
- Median mass, luminosity and Eddington Ratio
- Time difference between observations
-
Analysis of the output from HSC for control sample
-
Analysis of the modeling results
-
Figure 1 from the paper (redshift dependence)
-
Figure 2 from the paper (filter and control sample)
-
Figure 3 from the paper (brightness separation)
-
Figure 4 from the paper (time separation)
-
Figure 5 from the paper (modeling)
-
Fixed aperture check - Referee request
- Gathering and sorting data
- Reproduction of the analysis with the 3 arcsec aperture data
-
No deblending (parent_id=0) check
- Creating query
- Analysis of the result
The folder contents the files used or created in 'NonStationarity.ipynb'. Includes output from queries from catalog, intermediate and final results from the analysis. Find short description below, and further description at appropriate places in 'NonStationarity.ipynb' where each of the files is used.
194782.csv
: HSC output for the query of all AGN from SDSS281732.csv
: patch and tract for each AGN observed in HSC281734.csv
: time when each patch and tract was observed in HSC318658.csv
: HSC output, query for the control sample332693.csv
: HSC output, deblending parent_id for each AGNBrowseTargets.8558.1569111088
: equatorial subsample from Million QSO catalogdmag_HSC_SDSS_AGN_quasar.fits
: filter differences as function of redshift between SDSS and HSCdr7qso.dat
: DR7 AGN catalogmatched_array_fake_QSO.npy
: array with control sample, summarizes all the information from SDSS and HSCmatched_array_filtered.npy
: array with AGN, summarizes all the information from SDSS and HSCmatched_array_Stripe82_stars_to_dr7QSO
: Stripe82 stars with similar colors as AGN from DR7position_of_matched_array_Stripe82_stars_to_dr7QSO
: positions (Ra/Dec) of Stripe82 stars with similar colors as AGN from DR7Stripe82stars_likedr7_double_filtered
: Stripe82 stars with similar colors as AGN from DR7, after removing all AGNtime_difference_between_observations_in_g_band_SDSS_mean_HSC.npy
: time separation between observations in SDSS and HSC
In the subfolder Fixed_aperature we placed results which are connected with the check of our conclusions results, in which we compared the results from psf-magnitudes with the fixed aperture magnitudes.
- Folder
DF_matched
: results for fixed aperture queries for individual AGN 323497.csv
: HSC output, result of query for the AGN with fixed aperture valuesdf_profile
: information about the structure and values given by SDSS queryHSC_measurments_aper_sorted
: final dataframe containing fixed aperture data from HSCSDSS_measurments_aper
: final dataframe containing fixed aperture data from SDSS
In the subfolder Modeling we placed results which are connected with the simple modeling effort that is presented in the manuscript.
- Folder
Analysis_results
: summary of light curve behavior for one set of parameters (grid of 2401 parameter choices) - Folder
Code
: contains code to create summary from pure light curves - Folder
Individual_LC
: few examples of simulated light curves means_all_LC_redshift_fit.npy
andmeans_all_LC_redshift_values.npy
: table which summarizes redshift dependence, as in Figures 1,2,3 and 4, for each choice of modeling parameters
Figures created in NonStationarity.ipynb
. Find short description below, and further description at appropriate places in NonStationarity.ipynb
where each of the figures is created.
comparison_isolated_random
: comparison for the sample of isolated AGN and the main samplecomparison_SDSS_HSC_magnitudes
: comparison of SDSS and HSC magnitude for the AGN samplecomparison_stars_AGN_color_color
: comparison of colors for AGN and stars selected to look like AGNcomparison_stars_SDSS_HSC_magnitudes
: comparison of SDSS and HSC magnitude for the control samplecomparison_psf_mag_and_fixed_3_arcsec_aperature
: comparison of the results with psf and 3-arcsec aperturescoverage_stars_Stripe_82_SDSS_HSC
: positions (Ra/Dec) of the input stars from control sample and position of recovered starsFigure 1-5
: Figures 1,2,3,4 and 5 from the papermean_time_difference
: histogram of mean time separation between observationsmedian_Edd
: median Eddington ratio for AGN from each brightness binmedian_luminosity
: median luminosity for AGN from each brightness binmedian_mass
: median mass for AGN from each brightness binSDSS_HSC_coverage
: positions of the AGN found in SDSS and in HSC
For problems with using the code or installation use GitHub issues page or send us an email.