fetch_wfpc2_calib

grizli.utils.fetch_wfpc2_calib(file='g6q1912hu_r4f.fits', path=None, use_mast=False, verbose=True, overwrite=True, skip_existing=True)[source]

Fetch static WFPC2 calibration file and run stsci.tools.convertwaiveredfits on it.

Parameters
filestr, optional

Name of the calibration file to fetch. Default is “g6q1912hu_r4f.fits”.

pathstr, optional

Output path of the reference file. Default is the value of the “uref” environment variable.

use_mastbool, optional
  • If True, try to fetch the calibration file from “mast.stsci.edu//api/v0/download/file?uri”.

  • If False, fetch from a static directory “ssb.stsci.edu/cdbs_open/cdbs/uref_linux/”.

Default is False.

verbosebool, optional

If True, print verbose output. Default is True.

overwritebool, optional

If True, overwrite existing files. Default is True.

skip_existingbool, optional

If True, skip fetching the file if it already exists. Default is True.

Returns
statusbool

True if the file was successfully fetched and converted, False otherwise.