hispecdrp.datamodels.traceprof

Classes

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

The 2-D spatial profile comes from a fiberflat.

class TraceProfModel(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: FiberAttributeProxyMixin, CalibrationModel

The 2-D spatial profile comes from a fiberflat. Spectroperfection extraction also stores iso-λ shear and 2nd-moment LSF/spatial widths measured from LFC spots (plus fiberflat spatial moments).

Extensions

‘_FIB#’ in an HDU name denotes the fiber number (1..model.num_fibers).

HDU Name

HDU Type

Data Type

Dimensions

Units

Description

PROF_FIB#

Image

Float32

4096 x 4160

2-D spatial profile (fiberflat).

PROF_ERR_FIB#

Image

Float32

4096 x 4160

Profile errors for fiber #.

SHEAR_FIB#

Image

Float32

Nord x 4096

Iso-λ shear ∂row/∂col (LFC).

SIGMA_SPEC_FIB#

Image

Float32

Nord x 4096

Spectral Gaussian σ (pix).

SIGMA_SPAT_FIB#

Image

Float32

Nord x 4096

Spatial Gaussian σ (pix).

MOM2_CROSS_FIB#

Image

Float32

Nord x 4096

cov(row, col) (pix²).

CAL_TYPE = 'traceprof'
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'>}, 'MOM2_CROSS': {'default': 0, 'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'DETECTOR_SIZE_Y'), 'title': 'cov(row, col) (pix²).'}, 'PRIMARY': {'dtype': None, 'hdu_type': <class 'astropy.io.fits.hdu.image.PrimaryHDU'>}, 'PROF': {'default': 0, 'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': '2-D spatial profile (fiberflat).'}, 'PROF_ERR': {'default': 0, 'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('DETECTOR_SIZE_Y', 'DETECTOR_SIZE_X'), 'title': 'Profile errors for fiber #.'}, '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'>}, 'SHEAR': {'default': 0, 'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'DETECTOR_SIZE_Y'), 'title': 'Iso-λ shear ∂row/∂col (LFC).'}, 'SIGMA_SPAT': {'default': 0, 'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'DETECTOR_SIZE_Y'), 'title': 'Spatial Gaussian σ (pix).'}, 'SIGMA_SPEC': {'default': 0, 'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'DETECTOR_SIZE_Y'), 'title': 'Spectral Gaussian σ (pix).'}}
on_init()[source]