ATK.Models.HRD#
- class ATK.Models.HRD[source]#
Bases:
Container,DataFrameIOMixin,TableIOMixin,FITSIOMixinContainer for storing the location of sources on the Hertzsprung-Russell Diagram. This object stores both data and relevant metadata.
Units
The following attributes are automatically converted to
Quantitywith a default unit unless one is explictly provided:colour- magabs_mag- magdistance- pc
Plotting Arguments
The following keyword arguments are accepted when plotting via
plot()oropen().- splitbool, optional
If True, multiple HRDs in a
DataSetare plotted independently. Otherwise, combine into a single HRD plot.”Default is
True.- backgroundfloat, optional
Sets the fraction of the background sample that is rendered, from
0.0for no background to1.0for the full background sample.Default is
1.0.
Attributes
Absolute magnitude value in band given by
abs_mag_band, calculated usingdistance.Apparent magnitude band from which to calculate absolute magnitude.
Colour value in colour defined by
colour_bands.Colour bands.
Achieved degree of proper motion correction.
Distance to source, as derived from parallax.
Gaia Source ID.
Survey from which the stored data originates.
Methods
from_dataframe(target, data, **kwargs)from_table(target, data, **kwargs)show([show_types, show_all])Prints structure to stdout in a human-readable format.
Combines all array-like attributes of a structure into a
DataFrame.to_hdu()Converts structure into a FITS
BinTableHDU.to_table()Combines all array-like attributes of a structure into a
Table, preserving units.Attribute Descriptions
- abs_mag: ndarray | None = None#
Absolute magnitude value in band given by
abs_mag_band, calculated usingdistance.
- abs_mag_band: str | None = None#
Apparent magnitude band from which to calculate absolute magnitude.
E.g.
abs_mag_band = 'Gmag'
- correction: str | None = None#
Achieved degree of proper motion correction.
'full'= complete 3-dimensional projection on the sky.'partial'= 2-dimensional plane projection.'none'= no correction.
Method Descriptions
- classmethod from_dataframe(target, data, **kwargs)#
Construct a
HRDfrom aDataFrame.- Parameters:
- target
Target, int, orSkyCoord Astronomical target with which to associate input data.
- data
DataFrame Tabular data containing the relevant fields (i.e. array-like attributes) required to construct a
HRD. Units are assumed to be as listed above.- **kwargs
Additional keyword arguments to be forwarded to the internal parser.
The following keyword arguments are required:
survey
- target
- Returns:
- classmethod from_table(target, data, **kwargs)#
-
- Parameters:
- target
Target, int, orSkyCoord Astronomical target with which to associate input data.
- data
Table Tabular data containing the relevant fields (i.e. array-like attributes) required to construct a
HRD. Units are taken from the table where available, with missing units assumed to be those listed above.- **kwargs
Additional keyword arguments to be forwarded to the internal parser.
The following keyword arguments are required:
survey
- target
- Returns:
- show(show_types=False, show_all=False)#
Prints structure to stdout in a human-readable format.
- Parameters:
- show_typesbool, optional
If True, print data types of structure attributes.
Default is
False- show_allbool, optional
If True, do not truncate printing of large iterables.
Default is
False.
- Returns:
self
- to_dataframe()#
Combines all array-like attributes of a structure into a
DataFrame.Units are not preserved.
- Returns:
- to_hdu() BinTableHDU#
Converts structure into a FITS
BinTableHDU.- Returns: