CalibrationFile#

pydantic model lstcam_calib.io.database.CalibrationFile#

Pydantic model for a calibration file in the calibration db.

Show JSON schema
{
   "title": "CalibrationFile",
   "description": "Pydantic model for a calibration file in the calibration db.",
   "type": "object",
   "properties": {
      "product_id": {
         "title": "Product Id",
         "type": "string"
      },
      "status": {
         "title": "Status",
         "type": "string"
      },
      "usage_start": {
         "anyOf": [
            {
               "format": "date-time",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Usage Start"
      },
      "usage_stop": {
         "anyOf": [
            {
               "format": "date-time",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Usage Stop"
      },
      "processing_time": {
         "format": "date-time",
         "title": "Processing Time",
         "type": "string"
      },
      "path": {
         "format": "path",
         "title": "Path",
         "type": "string"
      },
      "provenance_path": {
         "format": "path",
         "title": "Provenance Path",
         "type": "string"
      },
      "lstcam_calib_version": {
         "title": "Lstcam Calib Version",
         "type": "string"
      },
      "last_modified": {
         "format": "date-time",
         "title": "Last Modified",
         "type": "string"
      },
      "obs_id": {
         "title": "Obs Id",
         "type": "integer"
      },
      "local_run_id": {
         "title": "Local Run Id",
         "type": "integer"
      },
      "drs4_baseline_path": {
         "anyOf": [
            {
               "format": "path",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Drs4 Baseline Path"
      },
      "drs4_time_sampling_path": {
         "anyOf": [
            {
               "format": "path",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Drs4 Time Sampling Path"
      },
      "ffactor_systematics_path": {
         "anyOf": [
            {
               "format": "path",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Ffactor Systematics Path"
      }
   },
   "required": [
      "product_id",
      "status",
      "processing_time",
      "path",
      "provenance_path",
      "lstcam_calib_version",
      "last_modified",
      "obs_id",
      "local_run_id"
   ]
}

Fields:
field drs4_baseline_path: Annotated[Path, PlainSerializer(func=str, return_type=str, when_used=always)] | None = None#

Path to the DRS4 baseline file used to correct R0 input file

field drs4_time_sampling_path: Annotated[Path, PlainSerializer(func=str, return_type=str, when_used=always)] | None = None#

Path to the DRS4 time file used to correct R0 input file

field ffactor_systematics_path: Annotated[Path, PlainSerializer(func=str, return_type=str, when_used=always)] | None = None#

Path to the F-factor systematics file to correct F-factor formula

field local_run_id: int [Required]#

Local run index of R0/R1 data used for the calibration

field obs_id: int [Required]#

CTAO observation index of the R0/R1 data used for the calibration