combine_extensions¶
- sofia_redux.instruments.fifi_ls.combine_nods.combine_extensions(df, b_nod_method='nearest')[source]¶
Find a B nod for each A nod.
For asymmetric data, DLAM and DBET do not need to match, B data can be used more than once, and the B needs to be subtracted, rather than added (symmetric B nods are multiplied by -1 in chop_subtract)
For the ‘interpolate’ option for B nod combination for most data, the time of interpolation is taken to be the middle of the observation, as determined by the FIFISTRT and EXPTIME keywords in the primary header. For OTF data, the time is interpolated between RAMPSTRT and RAMPEND times in the extension header, for each ramp.
- Parameters:
- dfpandas.DataFrame
- b_nod_method{‘nearest’, ‘average’, ‘interpolate’}, optional
Determines the method of combining the two nearest before and after B nods.
- Returns:
- list of fits.HDUList