CTAPipe Data Model¶
The DL1 files are HDF5 format files, with the following data set hierarchy.
The tables should be written with pytables (not h5py),
ideally with the HDF5TableWriter, which ensures the unit
and other descriptive metadata are attached to the output.
Containers marked with a + should be written without their prefix (all others should use column prefixes).
The following describes the contents of data level 1 (DL1) output files
generated by ctapipe (e.g. the ctapipe-process tool which uses the
DataWriter component to generate output data).
DL1 Data Model¶
This describes data that change per-event.
The following datasets will be written to the group /dl1/event/ in the output file:
Group/Dataset |
Description |
Contents |
|---|---|---|
|
event-wise data pertaining to a subarray |
(group) |
|
subarray trigger information |
|
|
Per-telescope Per-event information |
(group) |
|
tables of image parameters (one per telescope) |
|
|
tables of telescope images (one per telescope) |
DL2 Data Model¶
This describes data that change per-event. The following datasets will be
written to the group /dl2/event/stereo/<algorithm>/ and or
/dl2/event/mono/<algorithm>/, one for each reconstruction algorithm in the
output file, where <algorithm> is the identifier of the algorithm (e.g.
“Hillas”):
Group/Dataset |
Description |
Contents |
|---|---|---|
/geometry |
shower geometry reconstruction |
|
/energy |
shower energy reconstruction |
|
/classification |
shower classification parameters |
Simulation Data Model¶
/simulation/event/subarray/showertrue shower parameters from Monte-Carlo simulation
/simulation/event/telescope/images/tel_{TEL_ID:03d}simulated camera images
/simulation/event/telescope/parameters/tel_{TEL_ID:03d}Parameters derived form the simulated camera images
/simulation/service/shower_distributionsimulated shower distribution histograms
Configuration Data Model¶
The output file should also contain serializations of the instrument, observation (if
applicable), simulation (if applicable) configuration information, written to the
/configuration group:
Group/Dataset |
Description |
Contents |
|---|---|---|
|
Serialized |
(group) |
|
Subarray layout info |
result of |
|
telescope optics information |
result of |
|
camera geometry information |
result of |
|
Monte-Carlo simulation configuration information |
(group) |
|
Monte-Carlo simulation run information |
Core Provenance¶
The root group of the file shall contain all of the “CTA Core Provenance Metadata”
headers as user attributes, with the hierarchy flattened and separated by spaces
(e.g. "CTA ACTIVITY NAME" = "ctapipe-process").