Skip to content

irhamta/AGN-Specfit

 
 

Repository files navigation

AGN-Specfit

AGN-Specfit (AGN Spectral Fitting) is a modified version of QSFit. It is created as a pipeline to perform the analysis of SDSS Type 1 Active Galactic Nuclei optical spectra. To make use the pipeline, you have to:

  1. Add SDSS spectra files to "data" directory.
  2. Create list of file names, redshifts, and E(B-V) in "QSO_name.csv".
  3. Create directories which are named:
  • "output" and "table", to store the calculation result in nested and flattened structure files respectively.
  • "plot", to save all the plot data to be later loaded in GNUPLOT.
  • "result", to store the merged tables from "table" folder.
  1. Start an IDL session in your working directory. Then, compile and run the IDL scripts:
IDL> CD, "D:\path\where\AGN-Specfit\is\located"
IDL> compile
IDL> process_spectra
  1. Use the python scripts to combine all tables in "table" folder into one concatenated table. You have to install necessary modules first:
pip install -r requirements.txt
python multi_make_table.py
  1. You can specify which columns to keep by modifying "result/columns_to_keep.txt" files.
  2. Edit the scripts if necessary to suit your needs.

Further details about how to use QSFIT can be found in http://qsfit.inaf.it. The reference paper is https://arxiv.org/abs/1612.01580.

Packages

No packages published

Languages

  • Makefile 76.0%
  • Gnuplot 18.0%
  • IDL 3.1%
  • Prolog 2.5%
  • Other 0.4%