megaradrp.datamodel — MEGARA datamodel

Data model for MEGARA

class megaradrp.datamodel.BundleConf

Description of a bundle

class megaradrp.datamodel.FiberConf

Description of the fiber

class megaradrp.datamodel.FibersConf

Global configuration of the fibers

active_fibers(self)
bundles_to_table(self)

Convert bundles to a Table

conected_fibers(self, valid_only=False)
fibers_to_table(self)

Convert fibers to a Table

inactive_fibers(self)
invalid_fibers(self)
sky_fibers(self, valid_only=False, ignored_bundles=None)
spectral_coverage(self)
valid_fibers(self)
class megaradrp.datamodel.MegaraDataModel

Data model of MEGARA images

PLATESCALE = 1.212
db_info_keys = ['instrument', 'object', 'observation_date', 'uuid', 'type', 'mode', 'exptime', 'darktime', 'insconf', 'blckuuid', 'quality_control', 'vph', 'insmode']
db_info_keys_extra = ['vph', 'insmode']
fiber_scale_unit(self, img, unit=False)
gather_info_oresult(self, val)
get_fiberconf(self, img)

Obtain FiberConf from image

get_fiberconf_default(self, insmode)

Obtain default FiberConf object

get_imgid(self, img)

Obtain a unique identifier of the image.

Parameters:
img : astropy.io.fits.HDUList
Returns:
str:

Identification of the image

meta_dinfo_headers = ['exptime', 'observation_date', 'vph', 'vphpos', 'insmode', 'focus', 'osfilter', 'uuid', 'temp', 'block_uuid', 'insconf_uuid', 'speclamp', 'imgid']
meta_info_headers = ['instrument', 'object', 'observation_date', 'uuid', 'type', 'mode', 'exptime', 'darktime', 'insconf', 'blckuuid', 'quality_control', 'vph', 'insmode']
query_attrs = {'confid': <numina.datamodel.QueryAttribute object>, 'insconf': <numina.datamodel.QueryAttribute object>, 'insmode': <numina.datamodel.QueryAttribute object>, 'speclamp': <numina.datamodel.QueryAttribute object>, 'temp': <numina.datamodel.QueryAttribute object>, 'vph': <numina.datamodel.QueryAttribute object>}
class megaradrp.datamodel.TargetType

Possible targest in a fiber bundle

BLANK = 4
REFERENCE = 5
SKY = 4
SOURCE = 1
STAR = 5
UNASSIGNED = 3
UNKNOWN = 2
megaradrp.datamodel.read_fibers_extension(hdr, insmode='LCB')

Read the FIBERS extension

Parameters:
hdr:

FITS header

insmode: str

default INSMODE

Returns:
FibersConf