download_crds

ci_watson.hst_helpers.download_crds(refname, timeout=30, verbose=False)[source]

Download a CRDS file from HTTP to current directory.

Parameters:
refnamestr

Filename. Examples:

'012345678_bia.fits'
'jref$012345678_bia.fits'
'/path/to/012345678_bia.fits'

But only filename with dir$name format would proceed to download stage.

timeoutint or None

Number of seconds before timeout error is raised. If None, no timeout happens but this is not recommended.

verbosebool

If True, print messages to screen. This is useful for debugging.