Pointing offsets (pyobs.utils.offsets)

class ApplyOffsets(log_file: str | None = None, log_absolute: bool = False, **kwargs: Any)

Bases: Object

Apply offsets from a given image to a given telescope.

Note

Objects must always be opened and closed using open() and close(), respectively.

This class provides a VirtualFileSystem, a timezone and a location. From the latter two, an observer object is automatically created.

Object also adds support for easily adding threads using the add_background_task() method as well as a watchdog thread that automatically restarts threads, if requested.

Using add_child_object(), other objects can be (created an) attached to this object, which then automatically handles calls to open() and close() on those objects.

Parameters:
  • vfs – VFS to use (either object or config)

  • comm – Comm object to use

  • timezone – Timezone at observatory.

  • location – Location of observatory, either a name or a dict containing latitude, longitude, and elevation.

class ApplyRaDecOffsets(min_offset: float = 0.5, max_offset: float = 30, **kwargs: Any)

Bases: ApplyOffsets

Apply offsets from a given image to a given telescope.

Initializes a new ApplyRaDecOffsets.

Parameters:
  • min_offset – Min offset in arcsec to move.

  • max_offset – Max offset in arcsec to move.

class ApplyAltAzOffsets(min_offset: float = 0.5, max_offset: float = 30, **kwargs: Any)

Bases: ApplyOffsets

Apply offsets from a given image to a given telescope.

Initializes a new ApplyAltAzOffsets.

Parameters:
  • min_offset – Min offset in arcsec to move.

  • max_offset – Max offset in arcsec to move.