producer.astrometry module

Miscellaneous astrometry utilities.

producer.astrometry.focal_plane_offsets(x, y, center, revert=False)[source]

Convert between on-sky coordinates and focal-plane offset coordinates.

Assumes ICRS frame.

Parameters
  • x (numpy.ndarray) – Right ascension or longitude offset in decimal degrees.

  • y (numpy.ndarray) – Declination or latitude offset in decimal degrees.

  • center (tuple) – Two-tuple with the center coordinate, right ascension and declination, for the offset computations in decimal degrees.

  • revert (bool, optional) – If True, the computation assumes the input coordinates (x and y) are offset coordinates and the function reverts them to RA and DEC given the provided center.

Returns

Two numpy.ndarray objects with the converted coordinates in decimal degrees. Coordinates are RA and DEC if revert is true; otherwise, they are longitude and latitude offsets relative to the center.

Return type

tuple