calculate_offsets

sofia_redux.instruments.fifi_ls.spatial_calibrate.calculate_offsets(hdul, obsdate=None, flipsign=None, rotate=False)[source]

Calculate X and Y spatial offsets.

Parameters:
hdulfits.HDUList
obsdatearray_like of int, optional
flipsignbool, optional
rotatebool, optional

If True, rotate by detector angle to set N up

Returns:
fits.HDUList

HDUList updated with ‘XS’, ‘YS’ spatial offsets, and ‘RA’, ‘DEC’ equatorial coordinates.