SED Customisation#

Overlaying Spectra#

SEDs can be overlayed with spectra by passing a DataSet containing Spectrum 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")
sed_query.open(overlay=spec_query)
Bokeh Figure


Note

SED objects and their corresponding Spectrum overlays are automatically matched before being overlayed. In the case of multiple matching Spectrum objects for a single SED, each one is overlayed over a copy of the SED.




Download this Tutorial

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

Gallery generated by Sphinx-Gallery