offset_xy

sofia_redux.instruments.fifi_ls.spatial_calibrate.offset_xy(date, blue=False)[source]

Calculate X and Y offsets for each spaxel.

The procedure is:

  1. Identify calibration file by date and channel

  2. Read offsets from file and reform into array

  3. Return array

Parameters:
datearray_like of int

Date of observation as a [YYYY, M, D] vector (e.g. [2009,3,23]

bluebool, optional

If True, BLUE channel is assumed, otherwise, RED

Returns:
str, numpy.ndarray

calibration file used, (25, 2) X and Y offsets of each spaxel (in mm)