Onsite Computation of Calibration Coefficients#

Wrapper for the create_calibration_file tool.

Onsite script for creating a Cat-A calibration file.

usage: lstcam_calib_onsite_create_calibration_file [-h] -r RUN_NUMBER
                                                   [-f {fits.gz,fits,h5}]
                                                   [-p PEDESTAL_RUN]
                                                   [-v PROD_VERSION]
                                                   [-s STATISTICS]
                                                   [-b BASE_DIR]
                                                   [--r0-dir R0_DIR]
                                                   [--time-run TIME_RUN]
                                                   [--sys-date SYS_DATE]
                                                   [--no-sys-correction]
                                                   [--output-base-name OUTPUT_BASE_NAME]
                                                   [--sub-run SUB_RUN]
                                                   [--min-ff MIN_FF]
                                                   [--max-ff MAX_FF]
                                                   [--filters FILTERS]
                                                   [--tel-id TEL_ID]
                                                   [--config CONFIG]
                                                   [--filters-db-url FILTERS_DB_URL]
                                                   [-y] [--no-pro-symlink]
                                                   [--flatfield-heuristic]
                                                   [--no-flatfield-heuristic]
                                                   [--use-db]
                                                   [--db-url DB_URL]
                                                   [--apply-drs4-corrections]
                                                   [--apply-pedestal-correction]
                                                   [--db-name DB_NAME]

Named Arguments#

--use-db

Write metadata in TCU data-base

Default: False

--apply-drs4-corrections

Apply offline DRS4 correction

Default: False

--apply-pedestal-correction

Apply offline pedestal correction

Default: False

required arguments#

-r, --run-number

Run number if the flat-field data

optional arguments#

-f, --output-format

Possible choices: fits.gz, fits, h5

output format

Default: 'fits.gz'

-p, --pedestal-run

Pedestal run to be used. If None, it looks for the pedestal run of the date of the FF data.

-v, --prod-version

Version of the production

Default: 'v0.2.1.dev63+gdaf635b'

-s, --statistics

Number of events for the flat-field and pedestal statistics

Default: 10000

-b, --base-dir

Root dir for the output directory tree

Default: /fefs/onsite/data/lst-pipe/LSTN-01

--r0-dir

Root dir for the input r0 tree. By default, <base_dir>/R0 will be used

--time-run

Run for time calibration. If None, search the last time run before or equal the FF run

--sys-date

Date of systematic correction file (format YYYYMMDD). Default: automatically search the best date

--no-sys-correction

Systematic corrections are not applied.

Default: False

--output-base-name

Base of output file name (change only for debugging)

Default: 'calibration'

--sub-run

sub-run to be processed.

Default: 0

--min-ff

Min FF intensity cut in ADC.

--max-ff

Max FF intensity cut in ADC.

--filters

Calibox filters

--tel-id

telescope id. Default = 1

Default: 1

--config

Config file

Default: /usr/local/lib/python3.11/site-packages/lstcam_calib/resources/catA_camera_calibration_param.yml

--filters-db-url

Mongo data-base connection for filter information (Caco DB as default)

Default: 'mongodb://10.200.10.161:27018/'

-y, --yes

Do not ask interactively for permissions, assume true

Default: False

--no-pro-symlink

Do not update the pro dir symbolic link, assume true

Default: False

--flatfield-heuristic

If given, try to identify flatfield events from the raw data. Should be used only for data from before 2022

--no-flatfield-heuristic

If given, do not to identify flatfield events from the raw data. Should be used only for data from before 2022

--db-url

Connection to calibration data_base.

--db-name

Name of mongo calibration db.