.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_tutorials/hrds/hrd_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_hrds_hrd_query.py: ################# Working with HRDs ################# Performing a HRD Query ====================== To perform a Gaia HRD query and plot the result: .. GENERATED FROM PYTHON SOURCE LINES 9-17 .. code-block:: Python from ATK import query hrd_query = query("hrd", targets=587316166180416640, path="example_hrd.fits.gz") hrd_query.show(show_types=True) hrd_query.open() .. rst-class:: sphx-glr-script-out .. code-block:: none .kind (str): HRD .targets (list): 587316166180416640 | 141.185° 8.031° (icrs, 2016-01-01T00:00:00.000, 3.0″) .exception (bool): False .data (list): survey (str): gaia identifier (int): 587316166180416640 correction (str): n/a abs_mag_band (str): Gmag colour_bands (str): BPmag-RPmag colour (astropy.Quantity): [1.222] mag abs_mag (astropy.Quantity): [10.126] mag distance (astropy.Quantity): [533.476] pc Available Methods: .add(), .apply(), .from_target(), .merge(), .open(), .plot(), .save(), .show(), .split(), .store() .. raw:: html
Bokeh Figure


.. GENERATED FROM PYTHON SOURCE LINES 33-46 The returned :class:`~ATK.Models.DataSet`'s :attr:`~ATK.Models.DataSet.data` attribute is a list of :class:`~ATK.Models.HRD` objects (**one per target, subject to data availability**). | .. note:: 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>`. | | | .. rubric:: Download this Tutorial .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.940 seconds) .. _sphx_glr_download_auto_tutorials_hrds_hrd_query.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: hrd_query.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: hrd_query.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: hrd_query.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_