adler.objectdata.Observations

Attributes

OBSERVATIONS_KEYS

Classes

Observations

A SQL join of DiaSource and SSSource which contains all of the

Module Contents

OBSERVATIONS_KEYS[source]
class Observations[source]

A SQL join of DiaSource and SSSource which contains all of the observations of the object in a select filter. All attributes carry the same names as the column names from the DiaSource and SSSource tables.

Attributes:

ssObjectId: str

Id of the ssObject this source was associated with, if any. If not, it is set to NULL.

filter_namestr

Filter of the observations.

diaSourceId: array_like of ints

Unique identifier of the observation

mag: array_like of floats

Magnitude. This is a placeholder and will be replaced by flux.

magErr: array_like of floats

Magnitude error. This is a placeholder and will be replaced by flux error.

midPointMjdTai: array_like of floats

Effective mid-visit time for this diaSource, expressed as Modified Julian Date, International Atomic Time.

ra: array_like of floats

Right ascension coordinate of the center of this diaSource.

dec: array_like of floats

Declination coordinate of the center of this diaSource.

phaseAngle: array_like of floats

Phase angle.

topocentricDist: array_like of floats

Topocentric distance.

heliocentricDist: array_like of floats

Heliocentric distance.

heliocentricX: array_like of floats

x-axis component of the heliocentric distance.

heliocentricY: array_like of floats

y-axis component of the heliocentric distance.

heliocentricZ: array_like of floats

z-axis component of the heliocentric distance.

topocentricX: array_like of floats

x-axis component of the topocentric distance.

topocentricY: array_like of floats

y-axis component of the topocentric distance.

topocentricZ: array_like of floats

z-axis component of the topocentric distance.

eclipticLambda: array_like of floats

The ecliptic longitude.

eclipticBeta: array_like of floats

The ecliptic latitude.

reduced_mag: array_like of floats

The reduced magnitude.

num_obsint

The number of observations contained in this structure.

ssObjectId: str = ''[source]
filter_name: str = ''[source]
diaSourceId: numpy.ndarray[source]
mag: numpy.ndarray[source]
magErr: numpy.ndarray[source]
midPointMjdTai: numpy.ndarray[source]
ra: numpy.ndarray[source]
dec: numpy.ndarray[source]
phaseAngle: numpy.ndarray[source]
topocentricDist: numpy.ndarray[source]
heliocentricDist: numpy.ndarray[source]
heliocentricX: numpy.ndarray[source]
heliocentricY: numpy.ndarray[source]
heliocentricZ: numpy.ndarray[source]
topocentricX: numpy.ndarray[source]
topocentricY: numpy.ndarray[source]
topocentricZ: numpy.ndarray[source]
eclipticLambda: numpy.ndarray[source]
eclipticBeta: numpy.ndarray[source]
reduced_mag: numpy.ndarray[source]
num_obs: int = 0[source]
classmethod construct_from_data_table(ssObjectId, filter_name, data_table, cassandra=False)[source]

Initialises the Observations object from a table of data.

Parameters:
  • ssObjectId (str) – ssObjectId of the object of interest.

  • filter_name (str) – String of the filter the observations are taken in,

  • data_table (table-like object) – Table of data from which attributes shoud be populated.

Returns:

Observations object with class attributes populated from data_table.

Return type:

Observations object

classmethod construct_from_dictionary(ssObjectId, filter_name, data_dict)[source]

Initialises the Observations object from a dictionary of data.

Parameters:
  • ssObjectId (str) – ssObjectId of the object of interest.

  • filter_name (str) – String of the filter the observations are taken in,

  • data_dict (dict or dict-like object) – Dictionary of data from which attributes shoud be populated.

Returns:

Observations object with class attributes populated from data_dict.

Return type:

Observations object

calculate_reduced_mag(mag, topocentric_dist, heliocentric_dist)[source]

Calculates the reduced magnitude column.

Parameters:
  • mag (array_like of floats) – Magnitude.

  • topocentric_dist (array_like of floats) – Topocentric distance.

  • heliocentric_dist (array_like of floats) – Heliocentric distance.

Returns:

The reduced magnitude.

Return type:

array_like of floats