Enumerations (pyobs.utils.enums)

TODO: write doc

ExposureStatus

class ExposureStatus(value)[source]

Enumerator for camera status.

Variables:
  • IDLE – Camera is idle, i.e. ready for work.

  • EXPOSING – Camera is currently exposing.

  • READOUT – Camera is currently reading out.

  • ERROR – Camera is in error state.

ERROR = 'error'
EXPOSING = 'exposing'
IDLE = 'idle'
READOUT = 'readout'

ImageFormat

class ImageFormat(value)[source]

Enumerator for image formats.

Variables:
  • INT8 – 8 bit integer (i.e. byte).

  • INT16 – 16 bit integer (i.e. short).

  • FLOAT32 – 32 bit float.

  • FLOAT64 – 64 bit float (i.e. double).

  • 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:
  • BIAS – Bias/zero exposure.

  • DARK – Dark exposure.

  • OBJECT – Object/science exposure

  • SKYFLAT – Flat-field taken on sky.

  • FOCUS – Exposure from a focus-series.

  • ACQUISITION – Exposure from an acquisition

  • GUIDING – Guiding image

ACQUISITION = 'acquisition'
BIAS = 'bias'
DARK = 'dark'
FOCUS = 'focus'
GUIDING = 'guiding'
OBJECT = 'object'
SKYFLAT = 'skyflat'

ModuleState

class ModuleState(value)[source]

Enumerator for module states.

Variables:
  • CLOSED – Module is closed.

  • READY – Module is ready.

  • ERROR – Module has an error.

  • 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:
  • 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.

  • INITIALIZING – The device is transitioning from a PARKED state to an active state but is not yet fully operable.

  • IDLE – Operating but in no particular state.

  • POSITIONED – Operating in a well-defined state, but not moving.

  • SLEWING – The device is moving to some targeted state (e.g. to POSITIONED or TRACKING) but has not yet arrived at that state.

  • 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:
  • TIME – Time of measurement.

  • TEMPERATURE – Temperature in °C

  • HUMIDITY – Relative humidity in %.

  • PRESSURE – Pressure in hPa.

  • WINDDIR – Wind direction in degrees azimuth.

  • WINDSPEED – Wind speed in km/h.

  • RAIN – Raining (1) or not (0).

  • SKYTEMP – Relative sky temperature in °C.

  • DEWPOINT – Dew point in °C.

  • PARTICLES – Number of particles per m³.

  • SKYMAG – Sky magnitude in mag/arcsec^2

DEWPOINT = 'dewpoint'
HUMIDITY = 'humid'
PARTICLES = 'particles'
PRESSURE = 'press'
RAIN = 'rain'
SKYMAG = 'skymag'
SKYTEMP = 'skytemp'
TEMPERATURE = 'temp'
TIME = 'time'
WINDDIR = 'winddir'
WINDSPEED = 'windspeed'