fresh_flt_file

grizli.prep.fresh_flt_file(file, preserve_dq=False, path='../RAW/', verbose=True, extra_badpix=True, apply_grism_skysub=True, crclean=False, mask_regions=True, oneoverf_correction=True, oneoverf_kwargs={}, use_skyflats=True, do_pure_parallel_wcs=True)[source]

Copy “fresh” unmodified version of a data file from some central location

Parameters
filestr

Filename

preserve_dqbool

Preserve DQ arrays of files if they exist in ‘./’

pathstr

Path where to find the “fresh” files

verbosebool

Print information about what’s being done

extra_badpixbool

Apply extra bad pixel mask. Currently this is hard-coded to look for a file badpix_spars200_Nov9.fits in the directory specified by the $iref environment variable. The file can be downloaded from

https://github.com/gbrammer/wfc3/tree/master/data

apply_grism_skysubbool

xx nothing now xxx

crcleanbool

Run LACosmicx (astroscrappy) on the exposure

mask_regionsbool

Apply exposure region mask (like _flt.01.mask.reg) if it exists.

do_pure_parallel_wcsbool

Update the WCS for JWST pure-parallel exposures from the FGS logs to fix a MAST bug.

Returns
Nothing, but copies the file from path to ./.