Skip to content

Code and data supporting paper: Observational Nonstationarity of AGN variability: The only way is down! ( 2020ApJ...889L..29C)

Notifications You must be signed in to change notification settings

nevencaplar/AGN-Going-Down

Repository files navigation

Observational nonstationarity of AGN variability

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.

Contents of the repository:

  • 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 database
  • AGN-Going-Down.ipynb: main Jupiter notebook containing all of the routines
  • NonStationarity.py: module with useful functions for the analysis
  • Nonstationarity_of_AGN_variability__ApJL.pdf: current (ArXiv) version of the manuscript

Overview of AGN-Going-Down.ipynb:

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).

  1. Collecting the data

    1. Finding Ra/Dec coordinate of SDSS QSO
    2. Querying HSC database
    3. Constructing ``fake AGN'' sample (control sample)
    4. Querying HSC database for ``fake AGN''(control sample)
    5. Adding time-separation information
      1. Finding patch information for each AGN
      2. Finding out time difference between observations
  2. Analysis of the output from HSC for QSO selected in SDSS

    1. Initial analysis
    2. Median mass, luminosity and Eddington Ratio
    3. Time difference between observations
  3. Analysis of the output from HSC for control sample

  4. Analysis of the modeling results

  5. Figure 1 from the paper (redshift dependence)

  6. Figure 2 from the paper (filter and control sample)

  7. Figure 3 from the paper (brightness separation)

  8. Figure 4 from the paper (time separation)

  9. Figure 5 from the paper (modeling)

  10. Fixed aperture check - Referee request

    1. Gathering and sorting data
    2. Reproduction of the analysis with the 3 arcsec aperture data
  11. No deblending (parent_id=0) check

    1. Creating query
    2. Analysis of the result

Contents of Data folder:

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 SDSS
  • 281732.csv: patch and tract for each AGN observed in HSC
  • 281734.csv: time when each patch and tract was observed in HSC
  • 318658.csv: HSC output, query for the control sample
  • 332693.csv: HSC output, deblending parent_id for each AGN
  • BrowseTargets.8558.1569111088: equatorial subsample from Million QSO catalog
  • dmag_HSC_SDSS_AGN_quasar.fits: filter differences as function of redshift between SDSS and HSC
  • dr7qso.dat: DR7 AGN catalog
  • matched_array_fake_QSO.npy: array with control sample, summarizes all the information from SDSS and HSC
  • matched_array_filtered.npy: array with AGN, summarizes all the information from SDSS and HSC
  • matched_array_Stripe82_stars_to_dr7QSO: Stripe82 stars with similar colors as AGN from DR7
  • position_of_matched_array_Stripe82_stars_to_dr7QSO: positions (Ra/Dec) of Stripe82 stars with similar colors as AGN from DR7
  • Stripe82stars_likedr7_double_filtered: Stripe82 stars with similar colors as AGN from DR7, after removing all AGN
  • time_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 values
  • df_profile: information about the structure and values given by SDSS query
  • HSC_measurments_aper_sorted: final dataframe containing fixed aperture data from HSC
  • SDSS_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 and means_all_LC_redshift_values.npy: table which summarizes redshift dependence, as in Figures 1,2,3 and 4, for each choice of modeling parameters

Contents of Figure folder:

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 sample
  • comparison_SDSS_HSC_magnitudes: comparison of SDSS and HSC magnitude for the AGN sample
  • comparison_stars_AGN_color_color: comparison of colors for AGN and stars selected to look like AGN
  • comparison_stars_SDSS_HSC_magnitudes: comparison of SDSS and HSC magnitude for the control sample
  • comparison_psf_mag_and_fixed_3_arcsec_aperature: comparison of the results with psf and 3-arcsec apertures
  • coverage_stars_Stripe_82_SDSS_HSC: positions (Ra/Dec) of the input stars from control sample and position of recovered stars
  • Figure 1-5: Figures 1,2,3,4 and 5 from the paper
  • mean_time_difference: histogram of mean time separation between observations
  • median_Edd: median Eddington ratio for AGN from each brightness bin
  • median_luminosity: median luminosity for AGN from each brightness bin
  • median_mass: median mass for AGN from each brightness bin
  • SDSS_HSC_coverage: positions of the AGN found in SDSS and in HSC

Help:

For problems with using the code or installation use GitHub issues page or send us an email.

About

Code and data supporting paper: Observational Nonstationarity of AGN variability: The only way is down! ( 2020ApJ...889L..29C)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages