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:
Identify calibration file by date and channel
Read offsets from file and reform into array
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)