abstract
ObservatoryProperties
Bases: ABC
Observatory-specific methods.
These are not tied to other components or structures, and allow computations to be implemented in one place.
acquisition_time(resource, observation_mode)
staticmethod
Given a resource, check if it is an instrument, and if so, lookup the acquisition time for the specified mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resource |
Resource
|
A resource that should be an Instrument. |
required |
observation_mode |
ObservationMode
|
The observation mode to be used. |
required |
Returns:
Type | Description |
---|---|
Optional[timedelta]
|
Optional[timedelta]: The acquisition time for the instrument in that specific mode. |
determine_standard_time(resources, wavelengths, modes, cal_length)
staticmethod
Determine standard time for a specific Observatory
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resources |
FrozenSet
|
Set of Resources(instruments, mask, etc). |
required |
wavelengths |
FrozenSet[float]
|
An array of Wavelengths to be observed. |
required |
modes |
FrozenSet
|
The different modes of observation. |
required |
cal_length |
int
|
The length (in seconds) of a calibration. |
required |
Returns:
Name | Type | Description |
---|---|---|
Time |
Time
|
Value(s) of standard time |
is_instrument(resource)
staticmethod
Determine if the given resource is an instrument or not.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resource |
Resource
|
An instrument. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True is the resource is an instrument of the Observatory, otherwise False. |
set_properties()
staticmethod
Set properties for an specific Observatory
Raises:
Type | Description |
---|---|
ValueError
|
Illegal properties value. |