make_visit_average_flat¶
- grizli.prep.make_visit_average_flat(visit, clip_max=0, threshold=5, dilate=3, apply=True, instruments=['MIRI'], verbose=True, bad_bits=1539, bkg_kwargs={})[source]¶
Make an average “skyflat” for exposures in a visit, e.g., for MIRI
- Parameters
- visitdict
Visit dictionary with, at a minimum, keys of
product
andfiles
- clip_maxint
Number of max clipping iterations
- thresholdfloat
If specified, run
sep
source detection on each exposure- dilateint
Number of
scipy.ndimage.binary_dilation
iterations to run on the segmentation mask- applybool
Apply the flat to the exposures
- instrumentslist
Only run for these instruments (from INSTRUME header keyword)
- verbosebool
Print status messages