exposure_ramp_saturation

msaexp.utils.exposure_ramp_saturation(file='jw02701001001_03101_00003_nrs1_uncal.fits', saturation_level=63488, cleanup=True, force=False, perform=True, **kwargs)[source]

Get maximum of an uncal ramp for flagging saturation

Parameters
filestr

Filename of an uncal dataset

saturation_levelfloat

Level above which to define pixel values as saturated

Returns
is_saturatedarray-like

Flag array of saturated pixels. Also writes a file {dataset}_satflag.fits.