Spectrum Customisation#

Overlaying SEDs#

Spectra can be overlayed with a spectral energy distribution (see the next tutorial) by passing a DataSet containing SED objects to plot() or open():

from ATK import query

spec_query = query("spectrum", targets=587316166180416640, survey="sdss", path="example_spectrum.fits.gz")
sed_query = query("sed", targets=587316166180416640, path="example_sed.fits.gz")

spec_query.open(overlay=sed_query)
Bokeh Figure



Note

Spectrum objects and their corresponding SED overlays are automatically matched before being overlayed.




Download this Tutorial

Total running time of the script: (0 minutes 1.348 seconds)

Gallery generated by Sphinx-Gallery