DiaObjectId

class lsst.dax.apdb.DiaObjectId(*, diaObjectId: int, ra: float, dec: float)

Bases: object

Collection of data items identifying DIAObject records.

DIAObject primary key is diaObjectId, in Cassandra the table is partitioned by spatial coordinates (ra and dec).

Attributes Summary

dec

DIAObject dec, in degrees.

diaObjectId

ID of DIAObject record.

ra

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.

diaObjectId: int

ID of DIAObject 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_idDiaObjectId

Instance of this class.