trim_data¶
- sofia_redux.instruments.fifi_ls.split_grating_and_chop.trim_data(hdul, params)[source]¶
Remove partial ramps and “unpaired” chop plateaus.
Note that 4POINT chop is untested
- Assumptions:
file starts with chop0
chop0 and a following chop1 (2POINT) / chop2 (4POINT) makes a pair (chop1 and chop3 makes another pair for 4POINT chop scheme).
no missing ramps except at beginning or end of file
- Parameters:
- hdulfits.HDUList
- paramsdict
- Returns:
- fits.HDUList