pyobs-asi

This is a pyobs (documentation) module for ASI ZWO cameras.

Example configuration

This is an example configuration, tested on a ASI 071 MC:

class: pyobs_asi.AsiCoolCamera
camera: ZWO ASI071MC Pro

# file naming
filenames: /cache/pyobs-{DAY-OBS|date:}-{FRAMENUM|string:04d}-{IMAGETYP|type}00.fits

# additional fits headers
fits_headers:
  'DET-PIXL': [0.00478, 'Size of detector pixels (square) [mm]']
  'DET-NAME': ['SONY IMX071', 'Name of detector']
  'DET-RON': [2.3, 'Detector readout noise [e-]']
  'DET-SATU': [46000, 'Detector saturation limit [e-]']

# opto-mechanical centre
centre: [2472.0, 1642.0]

# rotation (east of north)
rotation: 3.06
flip: True

# location
timezone: utc
location:
  longitude: 9.944333
  latitude: 51.560583
  elevation: 201.

# communication
comm:
  jid: test@example.com
  password: ***

# virtual file system
vfs:
  class: pyobs.vfs.VirtualFileSystem
  roots:
    cache:
      class: pyobs.vfs.HttpFile
      upload: http://localhost:37075/

Available classes

There is one single class for ASI ZWO cameras.

AsiCamera

AsiCoolCamera

class AsiCoolCamera(setpoint: int = -20, **kwargs: Any)[source]

Bases: AsiCamera, ICooling

A pyobs module for ASI cameras with cooling.

Initializes a new AsiCoolCamera.

Parameters:

setpoint – Cooling temperature setpoint.

async get_cooling(**kwargs: Any) Tuple[bool, float, float][source]

Returns the current status for the cooling.

Returns:

Enabled (bool): Whether the cooling is enabled SetPoint (float): Setpoint for the cooling in celsius. Power (float): Current cooling power in percent or None.

Return type:

Tuple containing

async get_temperatures(**kwargs: Any) Dict[str, float][source]

Returns all temperatures measured by this module.

Returns:

Dict containing temperatures.

async open() None[source]

Open module.

async set_cooling(enabled: bool, setpoint: float, **kwargs: Any) None[source]

Enables/disables cooling and sets setpoint.

Parameters:
  • enabled – Enable or disable cooling.

  • setpoint – Setpoint in celsius for the cooling.

Raises:

ValueError – If cooling could not be set.