Skip to content

Commit 8b85ac4

Browse files
authored
Merge pull request #128 from cdeil/02-up
Polish before v0.2 release
2 parents 9a2a9ac + e76db11 commit 8b85ac4

File tree

8 files changed

+55
-22
lines changed

8 files changed

+55
-22
lines changed

source/about.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@ In gamma-ray astronomy, a variety of data formats and proprietary software have
99
been traditionally used, often developed for one specific mission or experiment.
1010
Especially for ground-based imaging atmospheric Cherenkov telescopes (IACTs),
1111
data and software are mostly private to the collaborations operating the
12-
telescopes. However, there is a general movement in science towards the use of
13-
open data and software. In addition, the next-generation IACT instrument, the
14-
Cherenkov Telescope Array (CTA), will be operated as an open observatory.
12+
telescopes. The next-generation IACT instrument, the Cherenkov Telescope Array
13+
(CTA), will be the first ground-based gamma-ray telescope array operated as an
14+
open observatory with public observer access. This implies fundamentally
15+
different requirements for the data formats and software tools. Open community
16+
access is a novelty in this domain, putting a challenge on the implementation of
17+
services that make very high energy (VHE) gamma-ray astronomy as accessible as
18+
any other waveband.
1519

1620
To work towards open and interoperable data formats for gamma-ray astronomy, we
1721
have started this open data format specification. This was started at the
1822
`PyGamma15 workshop`_ in November 2015, followed by a `meeting in April 2016 in
1923
Meudon`_ and another `meeting in March 2017 in Heidelberg`_. Version
20-
0.1 of the spec was release in April 2016, version 0.2 in July 2018. You can
24+
0.1 of the spec was release in April 2016, version 0.2 in August 2018. You can
2125
find more information about this effort in `Deil et al. (2017)
2226
<https://adsabs.harvard.edu/abs/2017AIPC.1792g0006D>`__.
2327

@@ -36,8 +40,9 @@ but rather the key name and data type for each metadata or data field.
3640
The formats described here are partially in use by current instruments
3741
(Fermi-LAT, HESS, VERITAS, MAGIC, FACT) as well as in the next-generation
3842
Cherenkov Telescope Array CTA. Prototyping and support for many of the formats
39-
here is happening in the CTA science tool prototypes `Gammapy`_ and `ctools`_,
40-
the data formats are being used e.g. in `gamma-cat`_.
43+
here is happening in the CTA science tool prototypes `Gammapy`_ and `ctools`_.
44+
The data formats are also used e.g. in `gamma-cat`_, a collection and source
45+
catalog for very-high-energy gamma-ray astronomy.
4146

4247
However, we would like to stress that this is an inofficial effort, the formats
4348
described here are work in progress and have not been officially adopted by any

source/conf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '0.1'
62+
version = '0.2'
6363
# The full version, including alpha/beta/rc tags.
64-
release = '0.1'
64+
release = '0.2'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.
@@ -220,7 +220,8 @@
220220

221221
latex_elements = {
222222
# The paper size ('letterpaper' or 'a4paper').
223-
#'papersize': 'letterpaper',
223+
'papersize': 'a4paper',
224+
'extraclassoptions': 'openany',
224225

225226
# The font size ('10pt', '11pt' or '12pt').
226227
#'pointsize': '10pt',
@@ -246,7 +247,8 @@
246247

247248
# For "manual" documents, if this is true, then toplevel headings are parts,
248249
# not chapters.
249-
#latex_use_parts = False
250+
# latex_use_parts = False
251+
latex_toplevel_sectioning = 'chapter'
250252

251253
# If true, show page references after internal links.
252254
#latex_show_pagerefs = False

source/data_storage/hdu_index/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ Column Name Description Data type Requ
5050
``MD5`` Checksum string no
5151
============== ================================================ ========= =========
5252

53+
Mandatory Header keywords
54+
-------------------------
55+
56+
As explained in :ref:`hduclass`, the following header keyword should be used to
57+
declare the type of HDU (this HDU itself, the HDU index table):
58+
59+
* ``HDUDOC`` = 'https://github.com/open-gamma-ray-astro/gamma-astro-data-formats'
60+
* ``HDUVERS`` = '0.2'
61+
* ``HDUCLASS`` = 'GADF'
62+
* ``HDUCLAS1`` = 'INDEX'
63+
* ``HDUCLAS2`` = 'HDU'
64+
5365
.. _hdu-type-class:
5466

5567
HDU_TYPE and HDU_CLASS

source/data_storage/obs_index/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ Mandatory Header keywords
134134
The standard FITS reference time header keywords should be used (see :ref:`time-formats`).
135135
An observatory Earth location should be given as well (see :ref:`coords-location`).
136136

137+
As explained in :ref:`hduclass`, the following header keyword should be used to
138+
declare the type of HDU:
139+
140+
* ``HDUDOC`` = 'https://github.com/open-gamma-ray-astro/gamma-astro-data-formats'
141+
* ``HDUVERS`` = '0.2'
142+
* ``HDUCLASS`` = 'GADF'
143+
* ``HDUCLAS1`` = 'INDEX'
144+
* ``HDUCLAS2`` = 'OBS'
145+
137146
.. _obs-index-notes:
138147

139148
Notes

source/events/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ if they want to analyse parts of observations. One option could be to absorb the
3434
dead-time correction into the effective areas, another option could be to add
3535
dead-time correction factors to GTI tables.
3636

37-
Without further ado, here is the current spec:
38-
3937
.. toctree::
4038
:maxdepth: 1
4139

source/general/hduclass.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ The current HDU class scheme used is the following:
7474
+-----------+------------+-----------------+--------------+
7575
| | | | BKG_3D |
7676
+-----------+------------+-----------------+--------------+
77+
| INDEX | OBS | | |
78+
+-----------+------------+-----------------+--------------+
79+
| | HDU | | |
80+
+-----------+------------+-----------------+--------------+

source/index.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ A place to propose and share data format descriptions for gamma-ray astronomy.
99
* Docs: https://gamma-astro-data-formats.readthedocs.io/
1010
* Mailing list: https://lists.nasa.gov/mailman/listinfo/open-gamma-ray-astro
1111

12-
Table of contents
13-
-----------------
14-
1512
.. toctree::
1613
:maxdepth: 1
1714

source/irfs/full_enclosure/aeff/index.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,24 @@ Recommended axis order: ``ENERGY``, ``THETA``
3333

3434
Header keywords:
3535

36-
In addition to the standard header keywords, the recommended energy range for
37-
the observation corresponding to the effective area file is stored in two
38-
additional header keywords. A hierarchical ``HDUCLASS`` keyword is used to declare the
39-
effective area type contained within the HDU.
36+
If the IRFs are only known to be "valid" or "safe" to use within a given energy
37+
range, that range can be given via the following two keywords. The keywords are
38+
optional, not all telescopes use the concept of a safe range; e.g. in CTA at
39+
this time this hasn't been defined. Note that a proper scheme to declare IRF
40+
validity range (e.g. masks or weights, or safe cuts that depend on other
41+
parameters such as FOV offset) is not available yet.
4042

41-
* ``OBS_ID`` type: int
42-
* Observation ID, run number
4343
* ``LO_THRES`` type: float, unit: TeV
4444
* Low energy threshold
4545
* ``HI_THRES`` type: float, unit: TeV
4646
* High energy threshold
47-
47+
48+
If the effective area corresponds to a given observation with an ``OBS_ID``,
49+
that ``OBS_ID`` should be given as a header keyword. Note that this is not
50+
always the case, e.g. sometimes IRFs are simulated and produced for instruments
51+
that haven't even been built yet, and then used to simulate different kinds of
52+
observations.
53+
4854
As explained in :ref:`hduclass`, the following header keyword should be used to
4955
declare the type of HDU:
5056

0 commit comments

Comments
 (0)