wf32d

wfc3tools.wf32d.wf32d(input, output=None, dqicorr='PERFORM', darkcorr='PERFORM', flatcorr='PERFORM', shadcorr='PERFORM', photcorr='PERFORM', verbose=False, quiet=True, debug=False, log_func=<built-in function print>)[source]

Call the wf32d.e executable.

Use this function to facilitate batch runs.

Perform or omit DQ array updates, dark image subtraction, flatfield image multiplication, shutter shading correction, and photometry keyword updates for the output file.

Parameters:
inputstr or list

Name of input files, such as:

  • a single filename (iaa012wdq_raw.fits)

  • a Python list of filenames

  • a partial filename with wildcards (*raw.fits)

  • filename of an ASN table (*asn.fits)

  • an at-file (@input)

outputstr

Name of the output FITS file. Default is None.

dqicorrstr, optional

Update the dq array from bad pixel table. Allowed values are “PERFORM” and “OMIT”. Default is “PERFORM”.

darkcorrstr, optional

Subtract the dark image. Allowed values are “PERFORM” and “OMIT”. Default is “PERFORM”.

flatcorrstr, optional

Multiply by the flatfield image. Allowed values are “PERFORM” and “OMIT”. Default is “PERFORM”.

shadcorrstr, optional

Correct for shutter shading (CCD). Allowed values are “PERFORM” and “OMIT”. Default is “PERFORM”.

photcorrstr, optional

Update photometry keywords in the header. Allowed values are “PERFORM” and “OMIT”. Default is “PERFORM”.

verbosebool, optional

If True, print verbose time stamps. Default is False.

quietbool, optional

If True, print messages only to trailer file. Default is True.

debugbool, optional

If True, print debugging statements. Default is False.

log_funcfunc

By default, the print function is used for logging to facilitate use in the Jupyter notebook.

Examples

>>> from wfc3tools import wf32d
>>> filename = '/path/to/some/wfc3/image.fits'
>>> wf32d(filename)