pipeline.domain.source.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:
objectA 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).
Methods
Attributes
Returns the average time spacing (in minutes) between table entries in the ephemeris table or "" if this is not an ephemeris source.
Return declination of the source.
Return source direction as a CASA 'direction' measure dictionary.
Returns the name of the ephemeris table associated with this Source or "" if this is not an ephemeris source.
Return reference frame code for the direction to the source.
Return declination of the source.
Return longitude for the source, in DMS format.
Return unique scan intents associated with the source.
Return latitude of the source.
Return longitude of the source.
Return string representation of longitudinal component of proper motion of the source.
Return string representation of latitudinal component of proper motion of the source.
Return string representation of proper motion of the source.
Return right ascension of the source.
- __init__(source_id: int | integer, name: str, direction: dict, proper_motion: dict[str, dict], is_eph_obj: bool, table_name: str, avg_spacing: float | str) None[source]
Initialize a Source object.
- Parameters:
source_id -- The numerical identifier of the source.
name -- The name of the source.
direction -- The direction to the source as a CASA 'direction' measure dictionary.
proper_motion -- The proper motion of the source; provided as a 2-element dictionary with keys "longitude" and "latitude", containing the respective components of the proper motion as CASA quantities (dictionaries).
is_eph_obj -- Boolean declaring whether this is a moving source (with entry in the ephemeris table).
table_name -- Base file name of ephemeris table (without extension).
avg_spacing -- Average time spacing (in minutes) between entries in the ephemeris table.
- property avg_spacing: float | str
Returns the average time spacing (in minutes) between table entries in the ephemeris table or "" if this is not an ephemeris source.
- property dec: str
Return declination of the source.
- property direction: dict
Return source direction as a CASA 'direction' measure dictionary.
- property ephemeris_table: str
Returns the name of the ephemeris table associated with this Source or "" if this is not an ephemeris source.
- property frame: str
Return reference frame code for the direction to the source.
- property gb: str
Return declination of the source.
- property gl: str
Return longitude for the source, in DMS format.
- property intents: set[str]
Return unique scan intents associated with the source.
- property latitude: dict
Return latitude of the source.
- property longitude: dict
Return longitude of the source.
- property pm_x: str
Return string representation of longitudinal component of proper motion of the source.
- property pm_y: str
Return string representation of latitudinal component of proper motion of the source.
- property proper_motion: str
Return string representation of proper motion of the source.
- property ra: str
Return right ascension of the source.