Commit c8af36c98c71b3c4dcc5ec50c3276a17d6e3c77a

Authored by Jürgen Knödlseder
1 parent eab4eddc

Update information on data organisation and download of data

doc/source/users/glossary.rst
... ... @@ -13,6 +13,12 @@ Glossary
13 13  
14 14 Bla bla ...
15 15  
  16 +.. _glossary_gti:
  17 +
  18 +.. topic:: Good Time Interval
  19 +
  20 + Bla bla ...
  21 +
16 22 .. _glossary_irf:
17 23  
18 24 .. topic:: Instrument Response Functions
... ...
doc/source/users/tutorials/1dc/data_organisation.rst 0 → 100644
  1 +.. _1dc_data_organisation:
  2 +
  3 +Data organisation
  4 +-----------------
  5 +
  6 +The content of the ``1dc`` folder should be as follows:
  7 +
  8 +.. code-block:: bash
  9 +
  10 + caldb/
  11 + caldb/data
  12 + caldb/data/cta
  13 + caldb/data/cta/prod3b
  14 + caldb/data/cta/prod3b/caldb.indx
  15 + caldb/data/cta/prod3b/bcf
  16 + ...
  17 + data/
  18 + data/gc_baseline_000001.fits
  19 + data/gc_baseline_000002.fits
  20 + ...
  21 + data/gc_threshold_000001.fits
  22 + data/gc_threshold_000002.fits
  23 + ...
  24 + data/
  25 + data/gps_baseline_000001.fits
  26 + data/gps_baseline_000002.fits
  27 + ...
  28 + data/gps_threshold_000001.fits
  29 + data/gps_threshold_000002.fits
  30 + ...
  31 + data/egal_baseline_000001.fits
  32 + data/egal_baseline_000002.fits
  33 + ...
  34 + data/egal_threshold_000001.fits
  35 + data/egal_threshold_000002.fits
  36 + ...
  37 + data/obs_gc_baseline.xml
  38 + data/obs_gc_threshold.xml
  39 + data/obs_gps_baseline.xml
  40 + data/obs_gps_threshold.xml
  41 + data/obs_egal_baseline.xml
  42 + data/obs_egal_threshold.xml
  43 + data/obs_all_baseline.xml
  44 + data/obs_all_threshold.xml
  45 + models/
  46 + models/models_gc.xml
  47 + models/models_gps.xml
  48 + models/models_egal.xml
  49 + models/map_RXJ1713.fits.gz
  50 + models/map_VelaJunior.fits.gz
  51 + models/map_ics.fits.gz
  52 + models/map_pi0.fits.gz
  53 +
  54 +The ``caldb`` folder contains the
  55 +:ref:`Instrument Response Functions <glossary_irf>`
  56 +that are necessary for the analysis of the simulated CTA data.
  57 +The folder contains the ``prod3b`` response that should be used for the
  58 +:ref:`First CTA Data Challenge <glossary_1dc>`.
  59 +The following response functions are available:
  60 +
  61 + +-----------------------+-------+---------------+--------+----------+
  62 + | Response name | Site | Configuration | Zenith | Duration |
  63 + +=======================+=======+===============+========+==========+
  64 + | ``South_z20_50h`` | South | Baseline | 20 deg | 50 hours |
  65 + +-----------------------+-------+---------------+--------+----------+
  66 + | ``South_z40_50h`` | South | Baseline | 40 deg | 50 hours |
  67 + +-----------------------+-------+---------------+--------+----------+
  68 + | ``South_z20_5h`` | South | Baseline | 20 deg | 5 hours |
  69 + +-----------------------+-------+---------------+--------+----------+
  70 + | ``South_z40_5h`` | South | Baseline | 40 deg | 5 hours |
  71 + +-----------------------+-------+---------------+--------+----------+
  72 + | ``South_z20_0.5h`` | South | Baseline | 20 deg | 30 min |
  73 + +-----------------------+-------+---------------+--------+----------+
  74 + | ``South_z40_0.5h`` | South | Baseline | 40 deg | 30 min |
  75 + +-----------------------+-------+---------------+--------+----------+
  76 + | ``North_z20_50h`` | North | Baseline | 20 deg | 50 hours |
  77 + +-----------------------+-------+---------------+--------+----------+
  78 + | ``North_z40_50h`` | North | Baseline | 40 deg | 50 hours |
  79 + +-----------------------+-------+---------------+--------+----------+
  80 + | ``North_z20_5h`` | North | Baseline | 20 deg | 5 hours |
  81 + +-----------------------+-------+---------------+--------+----------+
  82 + | ``North_z40_5h`` | North | Baseline | 40 deg | 5 hours |
  83 + +-----------------------+-------+---------------+--------+----------+
  84 + | ``North_z20_0.5h`` | North | Baseline | 20 deg | 30 min |
  85 + +-----------------------+-------+---------------+--------+----------+
  86 + | ``North_z40_0.5h`` | North | Baseline | 40 deg | 30 min |
  87 + +-----------------------+-------+---------------+--------+----------+
  88 + | ``South_TS_z20_50h`` | South | Threshold | 20 deg | 50 hours |
  89 + +-----------------------+-------+---------------+--------+----------+
  90 + | ``South_TS_z40_50h`` | South | Threshold | 40 deg | 50 hours |
  91 + +-----------------------+-------+---------------+--------+----------+
  92 + | ``South_TS_z20_5h`` | South | Threshold | 20 deg | 5 hours |
  93 + +-----------------------+-------+---------------+--------+----------+
  94 + | ``South_TS_z40_5h`` | South | Threshold | 40 deg | 5 hours |
  95 + +-----------------------+-------+---------------+--------+----------+
  96 + | ``South_TS_z20_0.5h`` | South | Threshold | 20 deg | 30 min |
  97 + +-----------------------+-------+---------------+--------+----------+
  98 + | ``South_TS_z40_0.5h`` | South | Threshold | 40 deg | 30 min |
  99 + +-----------------------+-------+---------------+--------+----------+
  100 + | ``North_TS_z20_50h`` | North | Threshold | 20 deg | 50 hours |
  101 + +-----------------------+-------+---------------+--------+----------+
  102 + | ``North_TS_z40_50h`` | North | Threshold | 40 deg | 50 hours |
  103 + +-----------------------+-------+---------------+--------+----------+
  104 + | ``North_TS_z20_5h`` | North | Threshold | 20 deg | 5 hours |
  105 + +-----------------------+-------+---------------+--------+----------+
  106 + | ``North_TS_z40_5h`` | North | Threshold | 40 deg | 5 hours |
  107 + +-----------------------+-------+---------------+--------+----------+
  108 + | ``North_TS_z20_0.5h`` | North | Threshold | 20 deg | 30 min |
  109 + +-----------------------+-------+---------------+--------+----------+
  110 + | ``North_TS_z40_0.5h`` | North | Threshold | 40 deg | 30 min |
  111 + +-----------------------+-------+---------------+--------+----------+
  112 +
  113 +The ``data`` folder contains the calibrated, reconstructed and background
  114 +reduced event data that were procuded for the
  115 +:ref:`First CTA Data Challenge <glossary_1dc>`
  116 +and that were stored into FITS files.
  117 +Each event file contains the events for an
  118 +:ref:`observation <glossary_obs>`
  119 +(or run) of 30 minutes duration and comprises an
  120 +:ref:`event lists <glossary_eventlist>`
  121 +and a
  122 +:ref:`Good Time Interval <glossary_gti>`
  123 +binary table extension (see figure below).
  124 +
  125 +.. figure:: event_file.png
  126 + :width: 600px
  127 + :align: center
  128 +
  129 + *Structure of an event file*
  130 +
  131 +The header of the ``EVENTS`` table contains information about the
  132 +:ref:`observation <glossary_obs>`
  133 +such as
  134 +the start and stop date and time,
  135 +the duration and livetime of the observation, and
  136 +the pointing direction in Right Ascension and Declination (see figure below).
  137 +
  138 +.. figure:: event_header.png
  139 + :width: 500px
  140 + :align: center
  141 +
  142 + *Header of an event list*
  143 +
  144 +.. note::
  145 + The pointing direction during an observation is fixed.
  146 +
  147 +.. warning::
  148 + Only the following header keywords have meaningful values:
  149 +
  150 + * ``DATE_OBS`` - start date of observation (UTC)
  151 + * ``TIME_OBS`` - start time of observation (UTC)
  152 + * ``DATE_END`` - end date of observation (UTC)
  153 + * ``TIME_END`` - end time of observation (UTC)
  154 + * ``TSTART`` - start time of observation, counted from time reference (s)
  155 + * ``TSTOP`` - stop time of observation, counted from time reference (s)
  156 + * ``MJDREFI`` - integer part of time reference MJD (days)
  157 + * ``MJDREFF`` - fractional part of time reference MJD (days)
  158 + * ``TIMEUNIT`` - time unit
  159 + * ``TIMESYS`` - time system
  160 + * ``TIMEREF`` - time reference
  161 + * ``TELAPSE`` - elapsed time (s)
  162 + * ``ONTIME`` - exposure time (s)
  163 + * ``LIVETIME`` - livetime (s)
  164 + * ``DEADC`` - deadtime correction factor, livetime / exposure time
  165 + * ``TIMEDEL`` - time resolution
  166 + * ``RA_PNT`` - Right Ascension of pointing direction (deg)
  167 + * ``DEC_PNT`` - Declination of pointing direction (deg)
  168 + * ``RADECSYS`` - Coordinate system
  169 + * ``EQUINOX`` - Coordinate epoch
  170 +
  171 + All remaining header keywords have arbitrary values and should not be
  172 + used for the analysis.
  173 +
  174 +Each row of the ``EVENTS`` table corresponds to a single event.
  175 +Each event is characterised by
  176 +
  177 + +--------------+-------------------------------------------+----------+
  178 + | Column | Meaning | Unit |
  179 + +==============+===========================================+==========+
  180 + | ``EVENT_ID`` | Event number in file | unitless |
  181 + +--------------+-------------------------------------------+----------+
  182 + | ``TIME`` | Time stamp, countered from time reference | s |
  183 + +--------------+-------------------------------------------+----------+
  184 + | ``RA`` | Reconstructed Right Ascension | deg |
  185 + +--------------+-------------------------------------------+----------+
  186 + | ``DEC`` | Reconstructed Declination | deg |
  187 + +--------------+-------------------------------------------+----------+
  188 + | ``ENERGY`` | Reconstructed energy | TeV |
  189 + +--------------+-------------------------------------------+----------+
  190 + | ``DETX`` | Reconstructed camera X coordinate | deg |
  191 + +--------------+-------------------------------------------+----------+
  192 + | ``DETY`` | Reconstructed camera Y coordinate | deg |
  193 + +--------------+-------------------------------------------+----------+
  194 +
  195 +An example of an ``EVENTS`` table is shown below.
  196 +
  197 +.. figure:: event_list.png
  198 + :width: 600px
  199 + :align: center
  200 +
  201 + *Content of an event list*
  202 +
  203 +Event files exist for
  204 +
  205 + +-----------------+---------------+--------------------+
  206 + | Survey | Configuration | Prefix |
  207 + +=================+===============+====================+
  208 + | Galactic Centre | Baseline | ``gc_baseline`` |
  209 + +-----------------+---------------+--------------------+
  210 + | Galactic Plane | Baseline | ``gps_baseline`` |
  211 + +-----------------+---------------+--------------------+
  212 + | Extragalactic | Baseline | ``egal_baseline`` |
  213 + +-----------------+---------------+--------------------+
  214 + | Galactic Centre | Threshold | ``gc_threshold`` |
  215 + +-----------------+---------------+--------------------+
  216 + | Galactic Plane | Threshold | ``gps_threshold`` |
  217 + +-----------------+---------------+--------------------+
  218 + | Extragalactic | Threshold | ``egal_threshold`` |
  219 + +-----------------+---------------+--------------------+
  220 +
  221 +The files ``obs_XXX_YYYYY.xml`` are so called
  222 +:ref:`Observation Definition Files <glossary_obsdef>`
  223 +that contain the information (or metadata) of a list of observations.
  224 +The files are plain ASCII files in XML format that be inspected and
  225 +manipulated by any text editor.
  226 +The following files are included in the data distribution:
  227 +
  228 + +----------------------------+--------------------------------------------------------+
  229 + | File | Purpose |
  230 + +============================+========================================================+
  231 + | ``obs_gc_baseline.xml`` | Galactic Centre Survey performed with baseline arrays |
  232 + +----------------------------+--------------------------------------------------------+
  233 + | ``obs_gc_threshold.xml`` | Galactic Centre Survey performed with threshold arrays |
  234 + +----------------------------+--------------------------------------------------------+
  235 + | ``obs_gps_baseline.xml`` | Galactic Plane Survey performed with baseline arrays |
  236 + +----------------------------+--------------------------------------------------------+
  237 + | ``obs_gps_threshold.xml`` | Galactic Plane Survey performed with threshold arrays |
  238 + +----------------------------+--------------------------------------------------------+
  239 + | ``obs_egal_baseline.xml`` | Extragalactic Survey performed with baseline arrays |
  240 + +----------------------------+--------------------------------------------------------+
  241 + | ``obs_egal_threshold.xml`` | Extragalactic Survey performed with threshold arrays |
  242 + +----------------------------+--------------------------------------------------------+
  243 + | ``obs_all_baseline.xml`` | All surveys combined performed with baseline arrays |
  244 + +----------------------------+--------------------------------------------------------+
  245 + | ``obs_all_threshold.xml`` | All surveys combined performed with threshold arrays |
  246 + +----------------------------+--------------------------------------------------------+
  247 +
  248 +The ``models`` folder contains the definitions of all source and background
  249 +models that have been used for simulating the data.
  250 +The file ``models_gc.xml`` is a so called
  251 +:ref:`Model Definition File <glossary_moddef>`
  252 +that collects the definition of all model components used for the Galactic
  253 +Centre Survey simulation.
  254 +The files ``models_gps.xml`` and ``models_egal.xml`` are the equivalent files
  255 +for the Galactic Plane Survey and the Extragalactic Survey.
  256 +The other files in the folder are FITS files containing sky maps that were
  257 +used as spatial templates for modelling extended or diffuse emission components.
  258 +There files are reference in the
  259 +:ref:`Model Definition File <glossary_moddef>`
  260 +files.
  261 +
  262 +
  263 +
... ...
doc/source/users/tutorials/1dc/event_file.png 0 → 100644

18.9 KB

doc/source/users/tutorials/1dc/event_header.png 0 → 100644

63.2 KB

doc/source/users/tutorials/1dc/event_list.png 0 → 100644

86.1 KB

doc/source/users/tutorials/1dc/first.rst
... ... @@ -14,11 +14,12 @@ We assume that you have downloaded the data of the
14 14 :ref:`First CTA Data Challenge <glossary_1dc>`
15 15 and that you have successfully installed the ctools package.
16 16 If this is not the case, please read :ref:`1dc_getting`.
  17 +We also assume that you have read the section about
  18 +:ref:`1dc_data_organisation`.
17 19  
18 20 .. toctree::
19 21 :maxdepth: 2
20 22  
21   - first_data
22 23 first_select_obs
23 24 first_skymap
24 25 first_detect
... ...
doc/source/users/tutorials/1dc/first_data.rst deleted
1   -.. _1dc_first_data:
2   -
3   -Data organisation
4   ------------------
5   -
6   -After downloading the
7   -:ref:`First CTA Data Challenge <glossary_1dc>`
8   -data from **TBD** and uncompressing the tarball using
9   -
10   -.. code-block:: bash
11   -
12   - $ tar xfvz 1dc.tar.gz
13   -
14   -you will have a directory ``1dc`` on your disk with the following content:
15   -
16   -.. code-block:: bash
17   -
18   - caldb/
19   - caldb/data
20   - caldb/data/cta
21   - caldb/data/cta/prod2
22   - ...
23   - caldb/data/cta/prod3
24   - caldb/data/cta/prod3/caldb.indx
25   - caldb/data/cta/prod3/bcf
26   - ...
27   - data/
28   - data/gps_baseline_000001.fits
29   - data/gps_baseline_000002.fits
30   - data/gps_baseline_000003.fits
31   - ...
32   - data/gps_threshold_000001.fits
33   - data/gps_threshold_000002.fits
34   - data/gps_threshold_000003.fits
35   - ...
36   - data/egal_baseline_000001.fits
37   - data/egal_baseline_000002.fits
38   - data/egal_baseline_000003.fits
39   - ...
40   - data/egal_threshold_000001.fits
41   - data/egal_threshold_000002.fits
42   - data/egal_threshold_000003.fits
43   - ...
44   - data/obs_gps_baseline.xml
45   - data/obs_gps_threshold.xml
46   - data/obs_egal_baseline.xml
47   - data/obs_egal_threshold.xml
48   - data/obs_all_baseline.xml
49   - data/obs_all_threshold.xml
50   - models/
51   - models/models_gps.xml
52   - models/models_egal.xml
53   - models/map_RXJ1713.fits.gz
54   - models/map_VelaJunior.fits.gz
55   - models/map_ics.fits.gz
56   - models/map_pi0.fits.gz
57   -
58   -The ``caldb`` folder contains the
59   -:ref:`Instrument Response Functions <glossary_irf>`
60   -that are necessary for the analysis of the simulated CTA data.
61   -The folder contains the ``prod3`` response that should be used for the
62   -:ref:`First CTA Data Challenge <glossary_1dc>`.
63   -For legacy reasons, also the ``prod2`` response functions are shipped with
64   -the tarball.
65   -
66   -The ``data`` folder contains the calibrated, reconstructed and background
67   -reduced event data that were procuded for the
68   -:ref:`First CTA Data Challenge <glossary_1dc>`.
69   -Each event file corresponds to the
70   -:ref:`event lists <glossary_eventlist>`
71   -for an
72   -:ref:`observation (or run) <glossary_obs>`, and contains for each event a
73   -time stamp, the reconstructued photon arrival direction, and the reconstructed
74   -photon energy.
75   -The pointing direction during an observation is fixed.
76   -Event files exist for the Galactic Plane Survey (starting with ``gps_``) and
77   -for the extragalactic survey (starting with ``egal_``) for both
78   -the ``baseline`` configuration and the ``threshold`` implementation.
79   -
80   -The files ``obs_XXX_YYYYY.xml`` are so called
81   -:ref:`Observation Definition Files <glossary_obsdef>`
82   -that contain the information (or metadata) of a list of observations.
83   -The files are plain ASCII files in XML format that be inspected and
84   -manipulated by any text editor.
85   -The following files are included in the data distribution:
86   -
87   -* ``obs_gps_baseline.xml``: Galactic Plane Survey performed with baseline arrays
88   -* ``obs_gps_threshold.xml``: Galactic Plane Survey performed with threshold implementation
89   -* ``obs_egal_baseline.xml``: Extragalactic Survey performed with baseline arrays
90   -* ``obs_egal_threshold.xml``: Extragalactic Survey performed with threshold implementation
91   -* ``obs_all_baseline.xml``: Both surveys performed with baseline arrays
92   -* ``obs_all_threshold.xml``: Both surveys performed with threshold implementation
93   -
94   -The ``models`` folder contains the definitions of all source and background
95   -models that have been used for simulating the data.
96   -The file ``models_gps.xml`` is a so called
97   -:ref:`Model Definition File <glossary_moddef>`
98   -that collects the definition of all model components used for the Galactic
99   -Plane Survey simulation.
100   -The file ``models_egal.xml`` is the equivalent file for the Extragalactic
101   -Survey.
102   -The other files in the folder are FITS files containing sky maps that were
103   -used as spatial templates for modelling extended or diffuse emission components.
104   -There files are reference in the
105   -:ref:`Model Definition File <glossary_moddef>`
106   -files.
107   -
108   -
109   -
doc/source/users/tutorials/1dc/getting.rst deleted
1   -.. _1dc_getting:
2   -
3   -Getting the data and analysis tools
4   -===================================
5   -
6   -Getting the data
7   -----------------
8   -
9   -To be written ...
10   -
11   -
12   -Getting the analysis tools
13   ---------------------------
14   -
15   -To be written ...
doc/source/users/tutorials/1dc/getting_data.rst 0 → 100644
  1 +.. _1dc_getting_data:
  2 +
  3 +Getting the data
  4 +================
  5 +
  6 +The data for the
  7 +:ref:`First CTA Data Challenge <glossary_1dc>`
  8 +are bundled with the
  9 +:ref:`Instrument Response Functions <glossary_irf>`
  10 +into a single tarball.
  11 +Click on
  12 +`1dc.tar.gz <https://www.dropbox.com/s/2aru9gak10h9su6/1dc.tar.gz?dl=0>`_
  13 +to download the tarball (file size: 485 MB).
  14 +You can then uncompress and deploy the data at any place by typing
  15 +
  16 +.. code-block:: bash
  17 +
  18 + $ tar xfvz 1dc.tar.gz
  19 +
  20 +.. warning::
  21 + Don't type the ``$`` symbol. It indicates in the following that a command
  22 + should be typed on the command line of a console.
  23 +
  24 +After deploying you should have the folder ``1dc`` in your current working
  25 +directory. Within that directory, please set the following environment variables:
  26 +
  27 +.. code-block:: bash
  28 +
  29 + $ export CALDB=$PWD/1dc/caldb
  30 + $ export CTADATA=$PWD/1dc/data
... ...
doc/source/users/tutorials/1dc/getting_tools.rst 0 → 100644
  1 +.. _1dc_getting_tools:
  2 +
  3 +Getting the analysis tools
  4 +==========================
  5 +
  6 +We recommend that you use ctools to analyse the data from the
  7 +:ref:`First CTA Data Challenge <glossary_1dc>`.
  8 +Please read :ref:`getting the ctools <sec_getting>` to learn how to
  9 +install and configure the ctools package.
... ...
doc/source/users/tutorials/1dc/index.rst
... ... @@ -7,6 +7,8 @@ First CTA Data Challenge
7 7 :maxdepth: 2
8 8  
9 9 scope
10   - getting
  10 + getting_tools
  11 + getting_data
  12 + data_organisation
11 13 first
12 14  
... ...