set_jwst_to_hst_keywords

grizli.jwst_utils.set_jwst_to_hst_keywords(input, reset=False, verbose=True, orig_keys=['TELESCOP', 'INSTRUME', 'DETECTOR', 'FILTER', 'PUPIL', 'EXP_TYPE', 'GRATING'], oneoverf_correction=True)[source]

Make primary header look like an HST instrument

Parameters
inputstr, HDUList

Filename or FITS HDUList object to modify.

resetbool

Reset original JWST keywords to their original values.

verbosebool

Messaging to terminal.

orig_keyslist

List of keywords to copy with a prefix of “O” (e.g., “OTELESCOP”).

oneoverf_correctionbool

Apply 1/f correction to the exposure if True.

Returns
imgHDUList

Modified FITS HDUList object.