WFPC2 ImageObjects
wfpc2Data
module provides classes used to import WFPC2 specific instrument data.
- Authors:
Warren Hack, Ivo Busko, Christopher Hanley
- License:
- class drizzlepac.wfpc2Data.WFPC2InputImage(filename, output=None, group=None)[source]
Bases:
imageObject
- SEPARATOR = '_'
- buildMask(chip, bits=0, write=False)[source]
Build masks as specified in the user parameters found in the configObj object.
- doUnitConversions()[source]
Apply unit conversions to all the chips, ignoring the group parameter. This insures that all the chips get the same conversions when this gets done, even if only 1 chip was specified to be processed.
- find_DQ_extension()[source]
Return the suffix for the data quality extension and the name of the file which that DQ extension should be read from.
- flat_file_map = {}
- getEffGain()[source]
Method used to return the effective gain of a instrument’s detector.
- Returns:
- gainfloat
The effective gain.
- getReadNoise(exten)[source]
Method for returning the readnoise of a detector (in counts).
- Returns:
- readnoisefloat
The readnoise of the detector in units of counts/electrons.
- getdarkcurrent(exten)[source]
Return the dark current for the WFPC2 detector. This value will be contained within an instrument specific keyword. The value in the image header will be converted to units of electrons.
- Returns:
- darkcurrentfloat
Dark current for the WFPC3 detector in units of counts/electrons.
- getflat(chip, flat_file=None, flat_ext=None)[source]
Method for retrieving a detector’s flat field.
- Parameters:
- chipint
Chip number. Same as FITS
EXTVER
.- flat_filestr, None
Flat field file name. If not specified, it will be determined automatically from image header.
- flat_extstr, None
Flat field extension name (same as FITS
EXTNAME
). Specifies extension name containing flat field data.
- Returns:
- flatnumpy.ndarray
The flat-field array in the same shape as the input image.