fetch_hst_calib

grizli.utils.fetch_hst_calib(file='iref$uc72113oi_pfl.fits', ftpdir='https://hst-crds.stsci.edu/unchecked_get/references/hst/', verbose=True, ref_paths={}, remove_corrupt=True)[source]

Fetches the HST calibration file from the given FTP directory or local reference path.

Parameters
filestr, optional

The name of the calibration file. Default is “iref$uc72113oi_pfl.fits”.

ftpdirstr, optional

The FTP directory where the calibration file is located. Default is “https://hst-crds.stsci.edu/unchecked_get/references/hst/”.

verbosebool, optional

If True, print status messages. Default is True.

ref_pathsdict, optional

A dictionary of reference paths. Default is an empty dictionary.

remove_corruptbool, optional

If True, remove the downloaded file if it is corrupt. Default is True.

Returns
str or bool

The path to the downloaded calibration file if it exists and is valid. False if the file is corrupt or cannot be downloaded.