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)[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- 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.
- Returns
- Nothing, but copies the file from
path
to./
.
- Nothing, but copies the file from