ATK.Models.Record#
- class ATK.Models.Record[source]#
Bases:
ContainerContainer for storing rows of a Vizier catalogue. This object stores metadata describing the origin of the data along with the associated data table.
Attributes
Vizier catalogue ID.
Achieved degree of proper motion correction.
Position of search at time of execution (i.e. post-correction).
Alias to Vizier
catalogue.Returned Vizier table.
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.
Converts structure into a
DataFrame.to_hdu()Converts structure into a FITS
BinTableHDU.to_table()Converts structure into a
Table.Attribute Descriptions
- 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: Target | SkyCoord | int, data: DataFrame, **kwargs) Self[source]#
Construct a
Recordfrom 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
Record. 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:
catalogue
- target
- Returns:
- classmethod from_table(target: Target | SkyCoord | int, data: Table, **kwargs) Self[source]#
Construct a
Recordfrom aTable.- 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
Record. 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:
catalogue
- 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_hdu() BinTableHDU[source]#
Converts structure into a FITS
BinTableHDU.- Returns: