get_pointing_mask¶
- sofia_redux.instruments.fifi_ls.pointing_discard.get_pointing_mask(primehead, pointing_threshold, grating_idx, dt_ramp, dt_grating, df_pointing_error)[source]¶
Create a boolean mask to set ramp values to NaN if the pointing at the ramp time is below the defined threshold.
- Parameters:
- primeheadastropy.io.fits.Header
Primary header of the loaded FITS file.
- pointing_thresholdastropy.io.fits.Header
Absolute threshold of the pointing error in arcsec. The slopes of ramps with a pointing error greater than the define threshold are set to NaN.
- grating_idxint
Index of the grating position.
- dt_rampfloat
Duration of one ramp in seconds.
- dt_gratingfloat
Duration of one grating position in seconds.
- df_pointing_errorpandas.DataFrame
Dataframe listing the pointing errors at a given time.
- Returns:
- pointing_maskpandas.Series
Boolean mask used to discard ramps with bad pointing.