hispecdrp.datamodels.dark

Classes

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

The dark current (and any other contribution to the dark) is assumed to be linear with time and is stored as a rate map product (e-/s).

class DarkModel(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 dark current (and any other contribution to the dark) is assumed to be linear with time and is stored as a rate map product (e-/s).

Extensions

HDU Name

HDU Type

Data Type

Dimensions

Units

Description

RATE

Image

Float32

4096 x 4160

DN

Dark current data.

RATE_ERR

Image

Float32

4096 x 4160

DN

Dark current error (all sources).

RATE_VAR_RNOISE

Image

Float32

4096 x 4160

DN^2

Dark current variance (read noise).

RATE_VAR_POISSON

Image

Float32

4096 x 4160

DN^2

Dark current variance (Poisson).

DQ

Image

UInt32

4096 x 4160

Data quality.

CAL_TYPE = 'dark'
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'>}, '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.'}, 'PRIMARY': {'dtype': None, 'hdu_type': <class 'astropy.io.fits.hdu.image.PrimaryHDU'>}, 'RATE': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': 'Dark current data.', 'units': 'DN'}, 'RATE_ERR': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': None, 'title': 'Dark current error (all sources).', 'units': 'DN'}, 'RATE_VAR_POISSON': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': None, 'title': 'Dark current variance (Poisson).', 'units': 'DN^2'}, 'RATE_VAR_RNOISE': {'default': 0, 'dtype': <class 'numpy.float32'>, 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': None, 'title': 'Dark current variance (read noise).', 'units': 'DN^2'}, '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'>}}
on_init()[source]