subtract_extensions

sofia_redux.instruments.fifi_ls.subtract_chops.subtract_extensions(hdul0, hdul1, add_only=False)[source]

Subtract extensions in the correct order.

Parameters:
hdul0fits.HDUList

HDU list containing chop 0 extensions

hdul1fits.HDUList

HDU list containing chop 1 extensions

add_onlybool, optional

If True, chop files will be added rather than subtracted. This is intended to be used for flat files only.

Returns:
fits.HDUList