hispecdrp.datamodels.gain

Classes

GainModel([filepath, meta, meta_only, ...])

The detector gain specifies the conversion factor between electrons and data numbers (DN) for each pixel in the detector.

class GainModel(filepath=None, meta=None, meta_only=False, extensions=None, correct_dtypes=False, config=None, validate_meta=True, instrument_name=None, shape=None, **kwargs)[source]

Bases: CalibrationModel

The detector gain specifies the conversion factor between electrons and data numbers (DN) for each pixel in the detector.

Extensions

HDU Name

HDU Type

Data Type

Dimensions

Units

Description

GAIN

Image

Float32

4096 x 4160

DN

Gain map.

RN

Image

Float32

4096 x 4160

DN

Read noise map.

COV

Image

Float32

4096 x 4160

DN^2

Covariance map.

DQ

Image

UInt32

4096 x 4160

Data quality.

CAL_TYPE = 'gain'
EXTENSIONS = {'CALIBRATIONS': {'columns': {'CAL_ROLE': <class 'str'>, 'CAL_TYPE': <class 'str'>, 'CLASS': <class 'str'>, 'DATETIME_OBS': <class 'str'>, 'DRP_VERSION': <class 'str'>, 'FILENAME': <class 'str'>, 'ID': <class 'str'>, 'LAST_PROCESSED': <class 'str'>, 'TIME_APPLIED': <class 'str'>}, 'hdu_type': <class 'astropy.io.fits.hdu.table.BinTableHDU'>}, 'COV': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': 'Covariance map.', 'units': 'DN^2'}, 'DATA_ANCESTORS': {'columns': {'CLASS': <class 'str'>, 'FILENAME': <class 'str'>, 'TIME_APPLIED': <class 'str'>}, 'hdu_type': <class 'astropy.io.fits.hdu.table.BinTableHDU'>}, 'DQ': {'default': 0, 'dtype': <class 'numpy.uint32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': 'Data quality.'}, 'GAIN': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': 'Gain map.', 'units': 'DN'}, 'PRIMARY': {'dtype': None, 'hdu_type': <class 'astropy.io.fits.hdu.image.PrimaryHDU'>}, 'RECEIPT': {'columns': {'CLASS': <class 'str'>, 'CONFIG_FILE': <class 'str'>, 'DRP_GIT_COMMIT_ID': <class 'str'>, 'DRP_VERSION': <class 'str'>, 'FILENAME': <class 'str'>, 'PARAMETERS': <class 'str'>, 'PROC_END_TIME': <class 'str'>, 'PROC_START_TIME': <class 'str'>, 'STATUS': <class 'str'>}, 'hdu_type': <class 'astropy.io.fits.hdu.table.BinTableHDU'>}, 'RN': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': 'Read noise map.', 'units': 'DN'}}
on_init()[source]