Data Module (sbpy.data
)¶
Introduction¶
sbpy.data
provides classes for dealing with all kinds of data that
planetary astronomers encounter: orbital elements
(Orbit
), ephemerides (Ephem
), observational
data (Obs
), and physical properties
(Phys
). These objects act as containers that bundle
similar data and have to be used in sbpy
to maintain a transparent
and clean data flow between functions. Each of these classes is based
on the DataClass
base class, which internally uses an
QTable
object in combination with some other
features. Hence, each of these objects can actually be thought of as a
table with different fields (or columns) and rows.
However, in contrast to simple tables, data
objects provide
additional functionality that is detailed below.
Reference/API¶
sbpy.data¶
- author:
Michael Mommert (mommermiscience@gmail.com)
Conf
contains metadata for sbpy
DataClass
field names.
Conf.fieldnames_info
is a list of dictionaries, one per field, with the
keys: 'description'
, 'fieldnames'
, 'provenance'
, 'dimension'
, and
'equivalencies'
:
description: text description of the field
provenance: list of
DataClass
objects which use the fieldfieldnames: list of field names as strings, the first is considered the primary, the remaining strings, if any, are alternates
dimension: English description of the field’s dimension (e.g., length)
equivalencies:
units
list of equivalencies for unit conversion (optional)
Functions¶
|
Decorator that converts astropy quantities to sbpy data classes. |
List sort keys considering strings of numbers as integers. |
|
|
Decorator that converts parameters to |
Classes¶
|
|
|
Class for querying, manipulating, and calculating ephemerides |
|
Class for querying, storing, and manipulating observations |
|
Class for querying, manipulating, integrating, and fitting orbital elements |
|
Class for storing and querying physical properties |
|
Class for parsing target identifiers. |
|
|
Will be raised in case of exceptions dealing with |
|
Will be raised in case of query errors. |
|
Will be raised in case time scales on |