Skip to content

Blazars' spectral energy distributions and the maximum of the synchrotron component

License

Notifications You must be signed in to change notification settings

DKudryavtsev/BZCAT-SED-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BZCAT SED Viewer

Description

The BZCAT SED Viewer script displays the spectral energy distributions (SEDs) for the blazars from the Roma-BZCAT catalog (5th edition, Massaro et al., 2015, Ap&SS, 357, 75). It also calculates the frequency of the synchrotron component maximum using a third-degree or 2-degree polinomial and allows a user to interactively mark it as 'good' or 'bad'. The results are saved in the original file. One can use the total list of Roma-BZCAT objects (data/BZCAT.csv provided here) or make their own subsample (the file must contain the 'BZCAT5 Source name', 'RA (J2000.0)', and 'Dec (J2000.0)' columns).

Citation:

@article{10.1088/1674-4527/ad3d14,
	author={Kudryavtsev, D. and Sotnikova, Yu. and Stolyarov, V. and Mufakharov, T. and Vlasyuk, V. and Khabibullina, M. and Mikhailov, A. and Cherepkova, Yu.},
	title={Cluster analysis of the Roma-BZCAT blazars},
	journal={Research in Astronomy and Astrophysics},
	url={http://iopscience.iop.org/article/10.1088/1674-4527/ad3d14},
	year={2024},
}

Data

Dependencies

Python3 with the numpy, pandas, matplotlib, and scipy libraries.

Installation of the libraries: pip install -r requirements.txt

Running the script

python3 sed_viewer.py data/BZCAT.csv 1

Here

  • data/BZCAT.csv - the provided file with BZCAT objects and their coordinates (or a file with your subsample)
  • 1 - the index number of the object your want to begin with (the first object in the list corresponds to 1, the range is 1-3561)

The script makes two charts - for the data from the SED Builder resident catalogs and for all catalogs. The polynomial fits the resident catalogs only, you can choose the 3rd (best practice) or 2nd degree. The right part of the synchrotron radiation SED is often "contaminated" by the radiation of the host galaxy. For that reason we implemented the slider which allows to tune the higher (right) frequency bound for the polynomial.

Hotkeys in the graphics window:

  • Enter or Space - see the next object;
  • Backspace - return one step back;
  • 'g' - mark as a good fit (correctness = True);
  • 'b' - mark as a bad fit (correctness = False);
  • 'c' - clear a mark;
  • 'f' - full screen on/off;
  • 'q' - quit

Objects labelled as "good" or "bad" (correctness == True or False) will be blocked from further fitting! To continue the fitting, clear the mark first.

The marking labels are saved in the original file along with the synchrotron peak frequency, right frequency bound, and polynomial order and are available during the following script runnings. One can also change and clean the labels.

About

Blazars' spectral energy distributions and the maximum of the synchrotron component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages