Working with HRDs#

Performing a HRD Query#

To perform a Gaia HRD query and plot the result:

from ATK import query

hrd_query = query("hrd", targets=587316166180416640, path="example_hrd.fits.gz")
hrd_query.show(show_types=True)

hrd_query.open()
<HRD DataSet>

.kind (str):        HRD
.targets (list):    587316166180416640 | 141.185° 8.031° (icrs, 2016-01-01T00:00:00.000, 3.0″)
.exception (bool):  False
.data (list):
          <gaia Gmag vs BPmag-RPmag HRD>
                    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()
Bokeh Figure


The returned DataSet’s data attribute is a list of HRD objects (one per target, subject to data availability).


Note

For a refresher on query() fundamentals, see here. For a refresher on plotting fundamentals, see here.




Download this Tutorial

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

Gallery generated by Sphinx-Gallery