1- .. _ datamodels :
1+ .. _ dataformat :
22
33***********
4- Data Models
4+ Data Format
55***********
66
77The ``ctapipe `` output files are using the HDF5 format files,
@@ -13,8 +13,16 @@ generated by ctapipe (e.g. the ``ctapipe-process`` tool which uses the
1313
1414The tables are written with `pytables <https://www.pytables.org >`_ (not ``h5py ``).
1515
16- DL1 Data Model
17- ==============
16+ The in-memory data format is defined by the `~ctapipe.containers ` structure.
17+
18+ To read this data, there are two high-level APIs available:
19+
20+ - Bulk-reading into astropy `~astropy.table.Table ` objects using `~ctapipe.io.TableLoader `
21+ - Event-wise using the `~ctapipe.io.HDF5EventSource `
22+
23+
24+ DL1 Data Format
25+ ===============
1826
1927This describes data that change per-event.
2028The following datasets will be written to the group ``/dl1/event/ `` in the output file:
@@ -34,22 +42,22 @@ The following datasets will be written to the group ``/dl1/event/`` in the outp
3442 * - ``telescope/ ``
3543 - Per-telescope Per-event information
3644 - (group)
37- * - ``telescope/parameters/tel_{TEL_ID:03d} ``
38- - tables of image parameters (one per telescope)
39- - :py:class: `~ctapipe.containers.TelEventIndexContainer `, :py:class: `~ctapipe.containers.ImageParametersContainer `
4045 * - ``telescope/images/tel_{TEL_ID:03d} ``
4146 - tables of telescope images (one per telescope)
4247 - :py:class: `~ctapipe.containers.TelEventIndexContainer `, :py:class: `~ctapipe.containers.DL1CameraContainer `
48+ * - ``telescope/parameters/tel_{TEL_ID:03d} ``
49+ - tables of image parameters (one per telescope)
50+ - :py:class: `~ctapipe.containers.TelEventIndexContainer `, :py:class: `~ctapipe.containers.ImageParametersContainer `
4351
4452
45- DL2 Data Model
46- ==============
53+ DL2 Data Format
54+ ===============
4755
4856This describes data that change per-event. The following datasets will be
49- written to the group ``/dl2/event/stereo /<algorithm>/ `` and or
50- ``/dl2/event/mono /<algorithm>/ ``, one for each reconstruction algorithm in the
51- output file, where ``<algorithm> `` is the identifier of the algorithm (e.g.
52- "Hillas "):
57+ written to the group ``/dl2/event/subarray /<algorithm>/ `` and or
58+ ``/dl2/event/telescope /<algorithm>/ ``, one for each reconstruction algorithm in the
59+ output file, where ``<algorithm> `` is the identifier of the algorithm
60+ (e.g. "HillasReconstructor "):
5361
5462.. list-table ::
5563 :widths: 25 50 25
@@ -69,8 +77,8 @@ output file, where ``<algorithm>`` is the identifier of the algorithm (e.g.
6977 - :py:class: `~ctapipe.containers.EventIndexContainer `, :py:class: `~ctapipe.containers.ParticleClassificationContainer `
7078
7179
72- Simulation Data Model
73- =====================
80+ Simulation Data Format
81+ ======================
7482
7583.. list-table ::
7684 :header-rows: 1
@@ -92,8 +100,8 @@ Simulation Data Model
92100 - :py:class: `~ctapipe.containers.SimulatedShowerDistribution `
93101
94102
95- Configuration Data Model
96- ========================
103+ Configuration Data Format
104+ =========================
97105
98106The output file should also contain serializations of the instrument, observation (if
99107applicable), simulation (if applicable) configuration information, written to the
0 commit comments