- class AstroToolkit.Data.dataquery.DataStruct[source]
This structure is returned from data, bulkdata and reddening queries, when read from a data file that was originally created by a data, bulkdata or reddening query, or through the Models module (in which case all attributes are set to None).
Attributes
- kindstr
“data”
- subkind: str
data query kind, from: “data”, “bulkdata”, “reddening”
- survey: str
survey from which data originates. For bulkdata queries, defaults to None.
- catalogue: str
Vizier catalogue ID from which data originates
- sourceint
Gaia source ID of target system (if given, else None)
- poslist<float>
Position of target system [right ascension, declination] in degrees
- identifierstr
Position of target system in JHHMMSS.SS±DDMMSS.SS format
- datanamestr
Default file for the
savedata()method- data: dict
returned data in the form:
{ <Vizier column header>: <value> ... }
Methods
- savedata(fname)
Saves a data structure’s data to local files.
- Parameters:
fname (str, optional) – overrides file name, defaults to file name given by the data structure’s ‘dataname’ attribute
- Returns:
name of file to which data was saved
- Return type:
str
- showdata(pprint, print_methods)
Prints data structure to stdout in a readable format.
- Parameters:
pprint (bool, optional) – collapse arrays and other objects to improve readability, defaults to True
- Returns:
Self