Enumerations (pyobs.utils.enums)
TODO: write doc
ExposureStatus
- class ExposureStatus(value)[source]
Enumerator for camera status.
- Variables:
~ExposureStatus.IDLE – Camera is idle, i.e. ready for work.
~ExposureStatus.EXPOSING – Camera is currently exposing.
~ExposureStatus.READOUT – Camera is currently reading out.
~ExposureStatus.ERROR – Camera is in error state.
- ERROR = 'error'
- EXPOSING = 'exposing'
- IDLE = 'idle'
- READOUT = 'readout'
ImageFormat
- class ImageFormat(value)[source]
Enumerator for image formats.
- Variables:
~ImageFormat.INT8 – 8 bit integer (i.e. byte).
~ImageFormat.INT16 – 16 bit integer (i.e. short).
~ImageFormat.FLOAT32 – 32 bit float.
~ImageFormat.FLOAT64 – 64 bit float (i.e. double).
~ImageFormat.RGB24 – RGB format with 8 bit for each colour.
- FLOAT32 = 'float32'
- FLOAT64 = 'float64'
- INT16 = 'int16'
- INT8 = 'int8'
- RGB24 = 'rgb24'
ImageType
- class ImageType(value)[source]
Enumerator specifying the image type.
- Variables:
~ImageType.BIAS – Bias/zero exposure.
~ImageType.DARK – Dark exposure.
~ImageType.OBJECT – Object/science exposure
~ImageType.SKYFLAT – Flat-field taken on sky.
~ImageType.FOCUS – Exposure from a focus-series.
~ImageType.ACQUISITION – Exposure from an acquisition
- ACQUISITION = 'acquisition'
- BIAS = 'bias'
- DARK = 'dark'
- FOCUS = 'focus'
- OBJECT = 'object'
- SKYFLAT = 'skyflat'
ModuleState
- class ModuleState(value)[source]
Enumerator for module states.
- Variables:
~ModuleState.CLOSED – Module is closed.
~ModuleState.READY – Module is ready.
~ModuleState.ERROR – Module has an error.
~ModuleState.LOCAL – Module is in local mode and cannot be used remotely.
- CLOSED = 'closed'
- ERROR = 'error'
- LOCAL = 'local'
- READY = 'ready'
MotionStatus
- class MotionStatus(value)[source]
Enumerator for moving device status.
- Variables:
~MotionStatus.PARKED – The device needs to be initialized or positioned or oved (depending upon the device; some devices don’t need a formal initialization); presumedly, this is the safe “off” state.
~MotionStatus.INITIALIZING – The device is transitioning from a PARKED state to an active state but is not yet fully operable.
~MotionStatus.IDLE – Operating but in no particular state.
~MotionStatus.POSITIONED – Operating in a well-defined state, but not moving.
~MotionStatus.SLEWING – The device is moving to some targeted state (e.g. to POSITIONED or TRACKING) but has not yet arrived at that state.
~MotionStatus.TRACKING – The device is moving as commanded.
- ABORTING = 'aborting'
- ERROR = 'error'
- IDLE = 'idle'
- INITIALIZING = 'initializing'
- PARKED = 'parked'
- PARKING = 'parking'
- POSITIONED = 'positioned'
- SLEWING = 'slewing'
- TRACKING = 'tracking'
- UNKNOWN = 'unknown'
WeatherSensors
- class WeatherSensors(value)[source]
Enumerator for sensors of a weather station.
- Variables:
~WeatherSensors.TIME – Time of measurement.
~WeatherSensors.TEMPERATURE – Temperature in °C
~WeatherSensors.HUMIDITY – Relative humidity in %.
~WeatherSensors.PRESSURE – Pressure in hPa.
~WeatherSensors.WINDDIR – Wind direction in degrees azimuth.
~WeatherSensors.WINDSPEED – Wind speed in km/h.
~WeatherSensors.RAIN – Raining (1) or not (0).
~WeatherSensors.SKYTEMP – Relative sky temperature in °C.
~WeatherSensors.DEWPOINT – Dew point in °C.
~WeatherSensors.PARTICLES – Number of particles per m³.
- DEWPOINT = 'dewpoint'
- HUMIDITY = 'humid'
- PARTICLES = 'particles'
- PRESSURE = 'press'
- RAIN = 'rain'
- SKYTEMP = 'skytemp'
- TEMPERATURE = 'temp'
- TIME = 'time'
- WINDDIR = 'winddir'
- WINDSPEED = 'windspeed'