Source

class Source(source_id: int | integer, name: str, direction: dict, proper_motion: dict[str, dict], is_eph_obj: bool, table_name: str, avg_spacing: float | str)[source]

Bases: object

A logical representation of an astronomical source.

id

The numerical identifier of the source.

name

The name of the source.

fields

List of Field objects for field(s) associated with the source.

is_eph_obj

Boolean declaring whether this is a moving source (with entry in the ephemeris table).

Attributes Summary

avg_spacing

Returns the average time spacing (in minutes) between table entries in the ephemeris table or "" if this is not an ephemeris source.

dec

Return declination of the source.

direction

Return source direction as a CASA 'direction' measure dictionary.

ephemeris_table

Returns the name of the ephemeris table associated with this Source or "" if this is not an ephemeris source.

frame

Return reference frame code for the direction to the source.

gb

Return declination of the source.

gl

Return longitude for the source, in DMS format.

intents

Return unique scan intents associated with the source.

latitude

Return latitude of the source.

longitude

Return longitude of the source.

pm_x

Return string representation of longitudinal component of proper motion of the source.

pm_y

Return string representation of latitudinal component of proper motion of the source.

proper_motion

Return string representation of proper motion of the source.

ra

Return right ascension of the source.

Attributes Documentation

avg_spacing

Returns the average time spacing (in minutes) between table entries in the ephemeris table or "" if this is not an ephemeris source.

dec

Return declination of the source.

direction

Return source direction as a CASA 'direction' measure dictionary.

ephemeris_table

Returns the name of the ephemeris table associated with this Source or "" if this is not an ephemeris source.

frame

Return reference frame code for the direction to the source.

gb

Return declination of the source.

gl

Return longitude for the source, in DMS format.

intents

Return unique scan intents associated with the source.

latitude

Return latitude of the source.

longitude

Return longitude of the source.

pm_x

Return string representation of longitudinal component of proper motion of the source.

pm_y

Return string representation of latitudinal component of proper motion of the source.

proper_motion

Return string representation of proper motion of the source.

ra

Return right ascension of the source.