Database#

The calibration database is hosted by the TCU Mongo server. All input/output actions must be performed by specific onsite tools, through the functions of the database module (for more details see Change Database Documents).

Meta-data are stored in several collections, one for each CalibrationType :

class lstcam_calib.io.database.CalibrationType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Name of collections in the calibration database.

CALIBRATION = 'calibration'

Collection of documents with meta-data of pixel calibration files

DRS4_BASELINE = 'drs4_baseline'

Collection of documents with meta-data of DRS4 baseline and spikes files

DRS4_TIME_LAPSE = 'drs4_time_lapse'

Collection of documents with meta-data of DRS4 timelapse files

DRS4_TIME_SAMPLING = 'drs4_time_sampling'

Collection of documents with meta-data of DRS4 time sampling files

FFACTOR_SYSTEMATICS = 'ffactor_systematics'

Collection of documents with meta-data of F-factor systematics files

Each document contains a set of fields that are common to all CalibrationType :

Then, each CalibrationType has its own specific fields, collected in the following classes :

Finally, the last document of the collection CALIBRATION_SERVICE_ID contains the path of the calibration files to be used in real time and the value of the calibration_service_id to insert in the R1 CameraConfiguration field :