get_miri_flat_by_date

grizli.pipeline.auto_script.get_miri_flat_by_date(file, tsplit={'F1000W': 5, 'F1280W': 5, 'F1500W': 8, 'F1800W': 5, 'F2100W': 4, 'F560W': 8, 'F770W': 4}, verbose=True)[source]

MIRI flats computed by date

Flat-files defined by
>>> tsplit = {'F560W' : 8,
              'F770W':4,
              'F1000W': 5,
              'F1280W': 5,
              'F1500W': 8,
              'F1800W': 5,
              'F2100W': 4 }
>>> tkey = np.round(t_min/tsplit[FILTER])
>>> file = f'miri-{FILTER}-{tkey}_skyflat.fits'
Parameters
filestr

MIRI exposure filename, with header keywords EXPSTART and FILTER

tsplitdict

Date rounding factors by filter

Returns
flat_filestr

Path to the flat file, None if not found