fetch_hst_calibs¶
- grizli.utils.fetch_hst_calibs(flt_file, ftpdir='https://hst-crds.stsci.edu/unchecked_get/references/hst/', calib_types=['BPIXTAB', 'CCDTAB', 'OSCNTAB', 'CRREJTAB', 'DARKFILE', 'NLINFILE', 'DFLTFILE', 'PFLTFILE', 'IMPHTTAB', 'IDCTAB', 'NPOLFILE'], verbose=True, ref_paths={})[source]¶
Fetch necessary calibration files needed for running calwf3 from STScI FTP
- Parameters
- flt_filestr
Path to the FITS file.
- ftpdirstr, optional
FTP directory to fetch the calibration files from. Default is “https://hst-crds.stsci.edu/unchecked_get/references/hst/”.
- calib_typeslist, optional
List of calibration types to fetch. Default is [“BPIXTAB”, “CCDTAB”, “OSCNTAB”, “CRREJTAB”, “DARKFILE”, “NLINFILE”, “DFLTFILE”, “PFLTFILE”, “IMPHTTAB”, “IDCTAB”, “NPOLFILE”].
- verbosebool, optional
Whether to print verbose output. Default is True.
- ref_pathsdict, optional
Dictionary of reference paths. Default is {}.
- Returns
- calib_pathslist
List of paths to the fetched calibration files.