Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

lst-dl0-converter

lst-dl0-converter is a tool designed to convert LST-1 R0 data files into CTAO DL0 format. This makes it possible to analyze LST-1 data using standard CTAO software (DPPS).

Most LST commissioning data has been written as uncalibrated R0 data using an older definition of the R1 event data structure (ProtoR1).

To convert this data to DL0 compliant with the data model and the current ACADA to DPPS ICD, several steps are necessary:

  • Calibrate the waveforms applying DRS4 corrections and calibration from adc counts to photo electrons
  • Computing pixel_timeshift from DRS4 time correction and flatfielding
  • For older data: compute best event timestamp from available sources.
  • For older data: determine R1 event_type from lower level trigger bit information
  • Optional: using lstchain muon analysis results to tag muon candidate events
  • Optional: using lstchain DVR pixel selection to apply DVR. Most data still available in the onsite cluster is already data volume reduced, but not calibrated (R0V), so this step should not be necessary in most cases.
  • Write out the calibrated, tagged events to DL0 files using the directory structure and filenames as prescribed by the ACADA-DPPS ICD.

Reading the R0 data and calibrating it to R1 is handled by ctapipe_io_lst, converting the R1 to DL0 is performed by code in this repository and most of the writing is handled by the acada-mock package.

Applying the DRS4 corrections is compute intensive. For this reasons, the converter will work best when converting LST subruns in parallel to equivalent chunks. This however violates the chunking prescribed by the ACADA-DPPS ICD:

  • Files with shower candidates will not follow the event_id based chunking and will contain roughly 13000 events, that's the LST chunk size of 13250 minus the calibration events of that chunk.
  • Files with calibration events will be much smaller than the chunk size, as any given subrun will only contain hundreds of calibration events.
  • Files with the muon event candidates will be very small.

Since all LST data that needs this conversion is monoscopic LST-1 data, this does not seem to be an issue. The chunking could be made to follow the ICD in a second step, but this is currently not planned.

Finding calibration files

The converter needs several files with calibration coefficients. While the converter itself does not depend on lstchain and it is at least currently not possible to have lstchain in the same environment due to different requirements on ctapipe, this repository provides a script using lstchain to find the needed calibration files in the IT cluster and put them into a config file for the converter.

Use a separate environment with lstchain and run the script to find the files for a given run:

$ python scripts/create_config_for_run.py 11961 > config_11961.yaml

Release files for ctao-lst-dl0-converter 0.1.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctao-lst-dl0-converter 0.1.0rc1
File Size Uploaded
ctao_lst_dl0_converter-0.1.0rc1.tar.gz 25.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctao-lst-dl0-converter 0.1.0rc1
File Interpreter ABI Platform
ctao_lst_dl0_converter-0.1.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 43.9 kB

Release files / ctao_lst_dl0_converter-0.1.0rc1.tar.gz

Download URL ctao_lst_dl0_converter-0.1.0rc1.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0fdb97265eb8ec103e5cae255703ba8a093eee16447c7a161d341771538b9c7e
BLAKE2b-256 checksum
How to use checksums
0893eb6453c14e1a5f8553f624f19bfe52bd809e0aff189082c43da4f07ba96e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / ctao_lst_dl0_converter-0.1.0rc1-py3-none-any.whl

Download URL ctao_lst_dl0_converter-0.1.0rc1-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3092c8ca50d6ee5bc67e9dea36acd45c3642770eb6126a2307fb986cacdaba5
BLAKE2b-256 checksum
How to use checksums
9c182b1d84caf3222d4b57118cfa58a0083842b7569c18aa519d17e33d001f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

0.1.0

2 release files

This release

0.1.0rc1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page