DiaObjectId¶
- class lsst.dax.apdb.DiaObjectId(*, diaObjectId: int, ra: float, dec: float)¶
Bases:
objectCollection of data items identifying DIAObject records.
DIAObject primary key is
diaObjectId, in Cassandra the table is partitioned by spatial coordinates (raanddec).Attributes Summary
DIAObject dec, in degrees.
ID of DIAObject record.
DIAObject ra, in degrees.
Methods Summary
from_named_tuple(named_tuple)Construct DiaObjectId from a named tuple.
Attributes Documentation
- dec: float¶
DIAObject dec, in degrees. Not required to be exact, but needs to be close to the value in database record.
- ra: float¶
DIAObject ra, in degrees. Not required to be exact, but needs to be close to the value in database record.
Methods Documentation
- classmethod from_named_tuple(named_tuple: Any) DiaObjectId¶
Construct DiaObjectId from a named tuple.
- Parameters:
- named_tuple
Named tuple which includes the same attributes as this class, e.g. a tuple returned from
pandas.DataFrame.itertuples(). Any additional attributes are ignored.
- Returns:
- object_id
DiaObjectId Instance of this class.
- object_id