Table of Contents

This was the beginning of an effort to document the options available for each step of the pipeline. For an up-to-date and complete implementation of this kind of documentation, please see the ReadTheDocs site.

pywifes.subtract_overscan

Purpose: to subtract overscan from raw WiFeS data.

Input Parameters

def subtract_overscan(inimg, outimg,
                      data_hdu = 0,
                      detector_regions=None,
                      overscan_regions=None,
                      gain=None,
                      rdnoise=None):

Returns

Detailed Description

This function subtracts overscan values from raw WiFeS frames (inimg) and saves output overscan-subtracted data in a new image (outimg). For each amplifier, the overscan value is determined as the median value of pixels in the defined overscan region (overscan_regions), then subtracted from all pixels values from the detector region for that amplifier (detector_regions). Users may input new values for the detector and overscan regions, as well as the gain (gain) and readout noise (rdnoise) values, but the default values should be determined automatically by calculating the detector epoch.

Calling Requirements

Input should be raw WiFeS data.

Known Limitations

None