Note
Go to the end to download the full example code.
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)
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)