lstpressure.observation

class lstpressure.observation.Observation(id: any, lst_window_start: float, lst_window_end: float, utc_constraints: list[LSTIntervalType] = None, duration: float = None, proposal_id: str = None)

Represents an observation block with given Local Sidereal Time (LST) window and UTC constraints.

Attributes

id: any

The ID of the observation block

lst_window_startfloat

The starting value of the LST window.

lst_window_endfloat

The ending value of the LST window.

utc_constraintslist[LSTInterval]

The UTC constraints for the observation block represented as a list of LSTInterval values. Defaults to 0.

property duration: float

Required observation duration in hours (decimal)

lstpressure.observation.is_observable(observation: ~lstpressure.observation.Observation.Observation, yyyymmdd_start: str | None = None, yyyymmdd_end: str | None = None, lstCalendar: <module 'lstpressure.lstcalendar.LSTCalendar' from '/home/zach/code/sarao/lst-pressure/lstpressure/lstcalendar/LSTCalendar.py'> | None = None, latitude: str | float | None = '-30:42:39.8', longitude: str | float | None = '21:26:38.0') bool

Determines if an Observation is observable within the specified date and location parameters.

Parameters

observationObservation

The Observation object to be checked.

yyyymmdd_startstr, optional

(Optional) The start date in the format ‘YYYYMMDD’.

yyyymmdd_endstr, optional

(Optional) The end date in the format ‘YYYYMMDD’. If not provided, the start date is used.

lstCalendarLSTCalendar, optional

(Optional) An instance of LSTCalendar. If not provided, a new LSTCalendar instance will be created based on the date and location parameters.

latitudestr or float, optional

(Optional) The latitude for the observation in the format ‘D:M:S’. Defaults to -30:42:39.8 (for ASTRAL provider).

longitudestr or float, optional

(Optional) The longitude for the observation in the format ‘D:M:S’. Defaults to 21:26:38.0 (for ASTRAL provider).

Returns

bool

True if the observation is observable within the specified parameters, False otherwise.