WF3REJ

The wfc3tools module contains a function wf3rej that calls the wf3rej executable. Use this function to facilitate batch runs or for the TEAL interface.

This routine contains the initial processing steps for all the WFC3 UVIS channel data. These steps are:

  • dqicorr - initializing the data quality array
  • atodcorr - perform the a to d conversion correction
  • blevcorr - subtract the bias level from the overscan region
  • biascorr - subtract the bias image
  • flshcorr - subtract the post-flash image

If blevcorr is performed the output contains the overcan-trimmed region.

Only those steps with a switch value of PERFORM in the input files will be executed, after which the switch will be set to COMPLETE in the corresponding output files.

Examples

In Python without TEAL:

>>> from wfc3tools import wf3rej
>>> calwf3.wf3rej(filename)

In Python with TEAL:

>>> from stsci.tools import teal
>>> from wfc3tools import wf3rej
>>> teal.teal('wf3rej')

In Pyraf:

>>> import wfc3tools
>>> epar wf3rej
wfc3tools.wf3rej.wf3rej(input, output='', crrejtab='', scalense='', initgues='', skysub='', crsigmas='', crradius=-1, crthresh=-1, badinpdq=-1, crmask=False, shadcorr=False, verbose=False)

Run the wf3rej.e executable as from the shell. For more information on CALWF3 see the WFC3 Data Handbook at http://www.stsci.edu/hst/wfc3/documents/handbooks/currentDHB/

Parameters:

  • input : str, Name of input files

    • 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)
  • output: str, Name of the output FITS file.

  • crrejtab: string, reference file name

  • scalense: string, scale factor applied to noise

  • initgues: string, intial value estimate scheme (min|med)

  • skysub: string, how to compute the sky (none|mode|mean)

  • crsigmas: string, rejection levels in each iteration

  • crradius: float, cosmic ray expansion radius in pixels

  • crthresh: float, rejection propagation threshold

  • badinpdq: int, data quality flag bits to reject

  • crmask: bool, flag CR in input DQ imageS?

  • shadcorr: bool, perform shading shutter correction?

  • verbose: bool, optional, Print verbose time stamps?

Table Of Contents

Previous topic

WF3IR

This Page