Onsite analysis pipeline for the CTA LST-1
Project description
lstosa
Onsite processing pipeline for the Large-Sized Telescope prototype (LST-1) of CTAO (Cherenkov Telescope Array Observatory) based on cta-lstchain running on the LST-1 IT onsite data center at Observatorio Roque de los Muchachos (La Palma, Spain). It automatically carries out the next-day analysis of observed data using cron jobs, parallelizing the processing using the job scheduler SLURM. It provides data quality monitoring and tracking of analysis products' provenance. Moreover, it also massively reprocesses the entire LST-1 dataset with each cta-lstchain major release.
- Code: https://github.com/cta-observatory/lstosa
- Docs: https://lstosa.readthedocs.io/
- License: BSD-3-Clause
Install
We recommend using an isolated conda environment.
-
Install mamba/miniconda first.
-
Clone the repository, create and activate the conda environment using the
environment.yml
file:git clone https://github.com/cta-observatory/lstosa.git cd lstosa conda env create -n osa -f environment.yml conda activate osa
Then install lstosa
as a user with: pip install lstosa
, or as a developer with: pip install -e .
. To install test, docs dependencies use pip install -e .[test]
, pip install -e .[doc]
or simply pip install -e .[all]
In case you want to install the lstchain development version instead of a fixed tag, you can run inside the osa
environment:
pip install git+https://github.com/cta-observatory/cta-lstchain
To update the environment (provided dependencies get updated), use:
conda env update -n osa -f environment.yml
Note to developers: to enforce a unique code convention, please install pre-commit (pre-commit install) after cloning the repository and creating the conda environment. This will black the committed files automatically.
Workflow management
lstosa
workflow is handled daily by the sequencer
script, which identifies which observations are to be processed, generates the analysis workflow, and submits the jobs. A first calibration job produces the daily calibration coefficients. Subsequently, data reconstruction jobs are scheduled on a subrun-wise basis (1 job corresponds to around 10 seconds of observed data, and its processing up to DL2 takes about 30-40 mins).
flowchart LR
daq --> osa_seq
osa_seq --> slurm --> osa_closer
daq[DAQ]
subgraph osa_seq [sequencer]
direction TB
A(Daily observation summary)
B(Generate workflow)
C(Submit jobs)
A --> B --> C
end
subgraph slurm [SLURM parallel processing]
direction TB
H(Calibration sequence)
I(Reconstruction sequences)
H --> I
end
subgraph osa_closer [autocloser]
direction TB
D(Check job completion)
E(Move files to final directories)
F(Merge files)
G(Parse provenance logs)
D --> E --> F --> G
end
Usage
To use lstosa, you will first need to symlink some auxiliary files in a similar directory tree structure to the standard data production and set the paths correctly in your lstosa configuration file. Then to process all the runs from a given date, you can run the following command (use first the --simulate
option to dry-run without actually submitting jobs):
sequencer --config your_osa_config.cfg --date YYYY-MM-DD LST1
Once all jobs finish, the autocloser
script checks job completion, merges files, moves them to their final directories, and parses provenance logs.
autocloser --config your_osa_config.cfg --date YYYY-MM-DD LST1
Dataflow
graph LR
subgraph DAQ
D1[R0]
D2[DRS4 calib run]
D3[Pedestal calib run]
D4[Pointing log]
end
D2 --> C1
D3 --> C2
subgraph Calibration
C1[DRS4 baseline correction]
C2[Calibration charge coeffitiens]
C1 --> C2
end
subgraph lstMCpipe
M1[gamma DL2 MC]
M2[RF models]
end
subgraph Sky-data reconstruction
S1[DL1a]
S2[DL1b]
S3[muons]
S4[DL1 check]
S5[DL2]
S6[DL3]
S7[IRF]
D1 & D4 & C1 & C2 --> S1
S1 --> S3
S1 --> S2
S2 & S3 --> S4
S2 ---> S5
S5 --> S6
S7 --> S6
M2 --> S5
M1 --> S7
end
subgraph High-level Gammapy
DL4
DL5
S6 --> DL4
DL4 --> DL5 --> ...
end
Warning: standard production of DL3 data and higher-level results is still under development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lstosa-0.10.17.tar.gz
.
File metadata
- Download URL: lstosa-0.10.17.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3220490317548679d103f7731164b193d92198147c4a48b96b4a8b1edeb573e8 |
|
MD5 | 41bee3b3654fb94762bf88c6f639221e |
|
BLAKE2b-256 | 90d3c56d34a27cc338de939eeb4a765f27f1a36f12dc452cfb724e4bab6c801a |
File details
Details for the file lstosa-0.10.17-py3-none-any.whl
.
File metadata
- Download URL: lstosa-0.10.17-py3-none-any.whl
- Upload date:
- Size: 126.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbedde44f172d5c07524963cec40e58905de23bcd5ded693c4ab34551ad1913 |
|
MD5 | b21902ad13b4a8343ff7ae5ae5cbf231 |
|
BLAKE2b-256 | 52f70f399010148e244446bc1b1b17b85dbbfe4eef5cff6dc2f699a7c3dd61cc |