hispecdrp.datamodels.tracepos

Classes

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

The trace positions are determined from the fiber flat data.

class TracePosModel(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 trace positions are determined from the fiber flat data. They are stored as polynomial coeffs and evaluated positions for each order/fiber.

Extensions

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

HDU Name

HDU Type

Data Type

Dimensions

Units

Description

COEFF_POS_FIB#

Image

Float64

Nord x N

Polynomial coefficients for the trace positions of fiber #.

COEFF_FWHM_FIB#

Image

Float64

Nord x N

Polynomial coefficients for the trace widths (FWHM) of fiber #.

POS_FIB#

Image

Float32

Nord x N

Pixels

Evaluated positions for fiber #.

FWHM_FIB#

Image

Float32

Nord x N

Pixels

Evaluated fwhm for fiber #.

CAL_TYPE = 'tracepos'
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'>}, 'COEFF_FWHM': {'dtype': <class 'numpy.float64'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'ANY'), 'title': 'Polynomial coefficients for the trace widths (FWHM) of fiber #.'}, 'COEFF_POS': {'dtype': <class 'numpy.float64'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'ANY'), 'title': 'Polynomial coefficients for the trace positions of fiber #.'}, 'DATA_ANCESTORS': {'columns': {'CLASS': <class 'str'>, 'FILENAME': <class 'str'>, 'TIME_APPLIED': <class 'str'>}, 'hdu_type': <class 'astropy.io.fits.hdu.table.BinTableHDU'>}, 'FWHM': {'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'ANY'), 'title': 'Evaluated fwhm for fiber #.', 'units': 'Pixels'}, 'POS': {'dtype': <class 'numpy.float32'>, 'enumerate': 'FIB', 'hdu_type': <class 'astropy.io.fits.hdu.image.ImageHDU'>, 'shape': ('N_ORDERS', 'ANY'), 'title': 'Evaluated positions for fiber #.', 'units': 'Pixels'}, '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'>}}
on_init()[source]