.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_tutorials/seds/sed_query.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_tutorials_seds_sed_query.py: ################# Working with SEDs ################# Performing an SED Query ======================= To perform an SED query and plot the result: .. GENERATED FROM PYTHON SOURCE LINES 9-16 .. code-block:: Python from ATK import query sed_query = query("sed", targets=587316166180416640, path="example_sed.fits.gz") sed_query.show(show_types=True) sed_query.open() .. rst-class:: sphx-glr-script-out .. code-block:: none .kind (str): SED .targets (list): 587316166180416640 | 141.185° 8.031° (icrs, 2016-01-01T00:00:00.000, 3.0″) .exception (bool): False .data (list): survey (numpy.ndarray): [gaia, gaia, ..., galex, galex] correction (numpy.ndarray): [full, full, ..., full, full] band (numpy.ndarray): [Gmag, BPmag, ..., FUVmag, NUVmag] id (numpy.ndarray): [587316166180416640, 587316166180416640, ..., 6377741628902215075, 6377741628902215075] separation (astropy.Quantity): [nan, nan, ..., 1.087, 1.087] ″ wavelength (astropy.Quantity): [5822.39, 5035.75, ..., 1535.08, 2300.78] Å flux (astropy.Quantity): [0.101, 0.078, ..., 0.048, 0.055] mJy flux_err (astropy.Quantity): [0.003, 0.008, ..., 0.005, 0.004] mJy Available Methods: .add(), .apply(), .from_target(), .merge(), .open(), .plot(), .save(), .show(), .split(), .store() .. raw:: html
Bokeh Figure


.. GENERATED FROM PYTHON SOURCE LINES 38-49 The returned :class:`~ATK.Models.DataSet`'s :attr:`~ATK.Models.DataSet.data` attribute is a list of :class:`~ATK.Models.SED` objects (**one per target, subject to data availability**). **Each** :class:`~ATK.Models.SED` **contains all retrieved photometry within the search radius.** | .. note:: SEDs are generated using photometry from the following surveys: .. include:: supported_sed_surveys.rst For a refresher on :func:`~ATK.Tools.query` fundamentals, see :doc:`here <../getting_started/data_query>`. For a refresher on plotting fundamentals, see :doc:`here <../images/image_query>`. .. GENERATED FROM PYTHON SOURCE LINES 51-56 | | | .. rubric:: Download this Tutorial .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.516 seconds) .. _sphx_glr_download_auto_tutorials_seds_sed_query.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: sed_query.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: sed_query.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: sed_query.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_