Commit ef2c7f74ebe441f49f543e9c203803dd04f1b017

Authored by Jürgen Knödlseder
2 parents 13c1d2ab ab827750

Merge branch 'master' into integration

# Conflicts:
#	README.md
#	configure.ac
#	ctools.pc.in
#	doc/Doxyfile
#	doc/source/conf.py
#	sonar-project.properties
doc/source/admin/download.rst
@@ -13,7 +13,7 @@ bugs. @@ -13,7 +13,7 @@ bugs.
13 Releases 13 Releases
14 -------- 14 --------
15 15
16 -The latest ctools release is ``ctools-1.4.0`` (1 August 2017). 16 +The latest ctools release is ``ctools-1.4.2`` (22 August 2017).
17 17
18 Below a table of ctools releases. Please read the :ref:`sec_release` to 18 Below a table of ctools releases. Please read the :ref:`sec_release` to
19 learn more about new features and corrected bugs in a given release. 19 learn more about new features and corrected bugs in a given release.
@@ -31,6 +31,12 @@ learn more about new features and corrected bugs in a given release. @@ -31,6 +31,12 @@ learn more about new features and corrected bugs in a given release.
31 * - ctools 31 * - ctools
32 - gammalib 32 - gammalib
33 - Mac OS X package 33 - Mac OS X package
  34 + * - `1.4.2 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2.tar.gz>`_
  35 + - `1.4.2 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.2.tar.gz>`_
  36 + - `ctools-1.4.2-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2-macosx10.7.dmg>`_
  37 + * - `1.4.1 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.1.tar.gz>`_
  38 + - `1.4.1 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.1.tar.gz>`_
  39 + - `ctools-1.4.1-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.1-macosx10.7.dmg>`_
34 * - `1.4.0 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.0.tar.gz>`_ 40 * - `1.4.0 <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.0.tar.gz>`_
35 - `1.4.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.0.tar.gz>`_ 41 - `1.4.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.0.tar.gz>`_
36 - `ctools-1.4.0-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.0-macosx10.7.dmg>`_ 42 - `ctools-1.4.0-macosx10.7.dmg <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.0-macosx10.7.dmg>`_
doc/source/admin/release_history/1.4.1.rst 0 → 100644
  1 +.. _1.4.1:
  2 +
  3 +ctools 1.4.1 release (22 August 2017)
  4 +=====================================
  5 +
  6 +Overview
  7 +--------
  8 +
  9 +ctools 1.4.1 is a bug fix for ctools release 1.4.
  10 +
  11 +Except of a change in the documentation the code is identical to release 1.4.
doc/source/admin/release_history/1.4.2.rst 0 → 100644
  1 +.. _1.4.2:
  2 +
  3 +ctools 1.4.2 release (24 August 2017)
  4 +=====================================
  5 +
  6 +Overview
  7 +--------
  8 +
  9 +ctools 1.4.2 is a bug fix for ctools release 1.4.
  10 +
  11 +Except of a change in the documentation the code is identical to release 1.4.
doc/source/admin/release_history/index.rst
@@ -20,6 +20,8 @@ Bug fix releases: @@ -20,6 +20,8 @@ Bug fix releases:
20 .. toctree:: 20 .. toctree::
21 :maxdepth: 1 21 :maxdepth: 1
22 22
  23 + ctools 1.4.2 <1.4.2>
  24 + ctools 1.4.1 <1.4.1>
23 ctools 1.3.1 <1.3.1> 25 ctools 1.3.1 <1.3.1>
24 ctools 1.2.1 <1.2.1> 26 ctools 1.2.1 <1.2.1>
25 ctools 1.0.1 <1.0.1> 27 ctools 1.0.1 <1.0.1>
doc/source/users/tutorials/1dc/data_organisation.rst
@@ -17,6 +17,10 @@ The content of the ``1dc`` folder should be as follows: @@ -17,6 +17,10 @@ The content of the ``1dc`` folder should be as follows:
17 caldb/data/cta/1dc/caldb.indx 17 caldb/data/cta/1dc/caldb.indx
18 caldb/data/cta/1dc/bcf 18 caldb/data/cta/1dc/bcf
19 ... 19 ...
  20 + data/baseline/agn
  21 + data/baseline/agn/agn_baseline_510000.fits
  22 + data/baseline/agn/agn_baseline_510001.fits
  23 + ...
20 data/ 24 data/
21 data/baseline/ 25 data/baseline/
22 data/baseline/egal 26 data/baseline/egal
@@ -32,11 +36,13 @@ The content of the ``1dc`` folder should be as follows: @@ -32,11 +36,13 @@ The content of the ``1dc`` folder should be as follows:
32 data/baseline/gps/gps_baseline_110001.fits 36 data/baseline/gps/gps_baseline_110001.fits
33 ... 37 ...
34 models/ 38 models/
  39 + models/models_agn.xml
35 models/models_egal.xml 40 models/models_egal.xml
36 models/models_gc.xml 41 models/models_gc.xml
37 models/models_gps.xml 42 models/models_gps.xml
38 ... 43 ...
39 obs/ 44 obs/
  45 + obs/obs_agn_baseline.xml
40 obs/obs_egal_baseline.xml 46 obs/obs_egal_baseline.xml
41 obs/obs_gc_baseline.xml 47 obs/obs_gc_baseline.xml
42 obs/obs_gps_baseline.xml 48 obs/obs_gps_baseline.xml
@@ -75,29 +81,30 @@ and that were stored into FITS files. @@ -75,29 +81,30 @@ and that were stored into FITS files.
75 Event data are split into :ref:`observations <glossary_obs>` with a fixed 81 Event data are split into :ref:`observations <glossary_obs>` with a fixed
76 pointing direction (observations are also known as runs). 82 pointing direction (observations are also known as runs).
77 The duration of an observation is 25 minutes for the Extragalactic Survey 83 The duration of an observation is 25 minutes for the Extragalactic Survey
78 -and 30 minutes for the Galactic Plane and Centre surveys.  
79 -The properties of the event data for all three surveys are summarised in the 84 +and 30 minutes for the Galactic Plane and Centre surveys and the AGN monitoring
  85 +program.
  86 +The properties of the event data for all simulations are summarised in the
80 table below: 87 table below:
81 88
82 - +-----------------------------------+---------------------+---------------------+---------------------+  
83 - | Parameter | GPS | GC | EGAL |  
84 - +===================================+=====================+=====================+=====================+  
85 - | Number of observations | 3270 | 1671 | 1271 |  
86 - +-----------------------------------+---------------------+---------------------+---------------------+  
87 - | Duration of each observation | 1800 s | 1800 s | 1500 s |  
88 - +-----------------------------------+---------------------+---------------------+---------------------+  
89 - | Deadtime fraction | 2% | 2% | 2% |  
90 - +-----------------------------------+---------------------+---------------------+---------------------+  
91 - | Total exposure time of simulation | 1635 h | 835.5 h | 529.58 h |  
92 - +-----------------------------------+---------------------+---------------------+---------------------+  
93 - | Simulated event energies | 30 GeV - 160 TeV | 30 GeV - 160 TeV | 30 GeV - 160 TeV |  
94 - +-----------------------------------+---------------------+---------------------+---------------------+  
95 - | Maximum off-axis angle | 5 deg | 5 deg | 5 deg |  
96 - +-----------------------------------+---------------------+---------------------+---------------------+  
97 - | Start date of observations | 2021-01-01T11:58:51 | 2021-01-01T11:58:51 | 2021-01-01T11:58:51 |  
98 - +-----------------------------------+---------------------+---------------------+---------------------+  
99 - | End date of observations | 2021-04-18T18:52:51 | 2021-03-29T21:32:51 | 2021-02-25T14:38:51 |  
100 - +-----------------------------------+---------------------+---------------------+---------------------+ 89 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  90 + | Parameter | GPS | GC | EGAL | AGN |
  91 + +===================================+==================+==================+==================+=================+
  92 + | Number of observations | 3270 | 1671 | 1271 | 1920 |
  93 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  94 + | Duration of each observation | 1800 s | 1800 s | 1500 s | 1800 s |
  95 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  96 + | Deadtime fraction | 2% | 2% | 2% | 2% |
  97 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  98 + | Total exposure time of simulation | 1635 h | 835.5 h | 529.58 h | 960.00 h |
  99 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  100 + | Simulated event energies | 30 GeV - 160 TeV | 30 GeV - 160 TeV | 30 GeV - 160 TeV | 30 GeV - 50 TeV |
  101 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  102 + | Maximum off-axis angle | 5 deg | 5 deg | 5 deg | 5 deg |
  103 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  104 + | Start date of observations | 2021-01-01 | 2021-01-01 | 2021-01-01 | 2021-01-01 |
  105 + +-----------------------------------+------------------+------------------+------------------+-----------------+
  106 + | End date of observations | 2021-04-18 | 2021-03-29 | 2021-02-25 | 2022-07-09 |
  107 + +-----------------------------------+------------------+------------------+------------------+-----------------+
101 108
102 109
103 Each event file contains the events for an 110 Each event file contains the events for an
@@ -205,8 +212,8 @@ An example of an ``EVENTS`` table is shown below. @@ -205,8 +212,8 @@ An example of an ``EVENTS`` table is shown below.
205 Observation Definition Files 212 Observation Definition Files
206 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207 214
208 -The files ``obs_egal_baseline.xml``, ``obs_gc_baseline.xml``, and  
209 -``obs_gps_baseline.xml`` are so called 215 +The files ``obs_agn_baseline.xml``, ``obs_egal_baseline.xml``,
  216 +``obs_gc_baseline.xml``, and ``obs_gps_baseline.xml`` are so called
210 :ref:`observation definition files <glossary_obsdef>` 217 :ref:`observation definition files <glossary_obsdef>`
211 containing the information (or metadata) of a list of observations. 218 containing the information (or metadata) of a list of observations.
212 The file is a plain ASCII files in XML format that can be inspected and 219 The file is a plain ASCII files in XML format that can be inspected and
@@ -218,11 +225,11 @@ Models @@ -218,11 +225,11 @@ Models
218 225
219 The ``models`` folder contains the definitions of all source and background 226 The ``models`` folder contains the definitions of all source and background
220 models that were used for simulating the data. 227 models that were used for simulating the data.
221 -The files ``models_egal.xml``, ``models_gc.xml`` and ``models_gps.xml`` are  
222 -so called 228 +The files ``models_agn.xml``, ``models_egal.xml``, ``models_gc.xml`` and
  229 +``models_gps.xml`` are so called
223 :ref:`model definition files <glossary_moddef>` 230 :ref:`model definition files <glossary_moddef>`
224 collecting the definition of all model components used for the three surveys. 231 collecting the definition of all model components used for the three surveys.
225 -Since the same sky model was used for all surveys the three files are 232 +Since the same sky model was used for all surveys the four files are
226 identical. 233 identical.
227 The other files in the folder are ASCII and FITS files containing spectral, 234 The other files in the folder are ASCII and FITS files containing spectral,
228 temporal and spatial information that was used in the simulations. 235 temporal and spatial information that was used in the simulations.
doc/source/users/tutorials/1dc/getting_data.rst
@@ -10,7 +10,7 @@ data are available on the @@ -10,7 +10,7 @@ data are available on the
10 You need your usual CTA credentials to download the data. 10 You need your usual CTA credentials to download the data.
11 11
12 The release contains simulated data for the Galactic Plane Survey, the 12 The release contains simulated data for the Galactic Plane Survey, the
13 -Galactic Centre Survey and the Extragalactic Survey, 13 +Galactic Centre Survey, the Extragalactic Survey and the AGN monitoring program,
14 :ref:`instrument response functions (IRFs) <glossary_irf>`, and the 14 :ref:`instrument response functions (IRFs) <glossary_irf>`, and the
15 :ref:`model definition files <glossary_moddef>` 15 :ref:`model definition files <glossary_moddef>`
16 that were used for the simulation. 16 that were used for the simulation.
@@ -21,6 +21,7 @@ by clicking on the following links: @@ -21,6 +21,7 @@ by clicking on the following links:
21 * `Galactic Plane Survey <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gps.tar.gz>`_ (8.3 GB) 21 * `Galactic Plane Survey <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gps.tar.gz>`_ (8.3 GB)
22 * `Galactic Centre Survey <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gc.tar.gz>`_ (4.4 GB) 22 * `Galactic Centre Survey <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gc.tar.gz>`_ (4.4 GB)
23 * `Extragalactic Survey <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/egal.tar.gz>`_ (2.5 GB) 23 * `Extragalactic Survey <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/egal.tar.gz>`_ (2.5 GB)
  24 +* `AGN monitoring program <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/agn.tar.gz>`_ (4.7 GB)
24 * `Instrument Response Functions <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz>`_ (1.2 MB) 25 * `Instrument Response Functions <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz>`_ (1.2 MB)
25 * `Sky and background models <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz>`_ (0.9 GB) 26 * `Sky and background models <https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz>`_ (0.9 GB)
26 27
@@ -32,6 +33,7 @@ line by typing: @@ -32,6 +33,7 @@ line by typing:
32 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gps.tar.gz --user=<user> --ask-password 33 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gps.tar.gz --user=<user> --ask-password
33 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gc.tar.gz --user=<user> --ask-password 34 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/gc.tar.gz --user=<user> --ask-password
34 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/egal.tar.gz --user=<user> --ask-password 35 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/egal.tar.gz --user=<user> --ask-password
  36 + $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/agn.tar.gz --user=<user> --ask-password
35 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz --user=<user> --ask-password 37 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/caldb.tar.gz --user=<user> --ask-password
36 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz --user=<user> --ask-password 38 $ wget https://owncloud.cta-observatory.org/remote.php/webdav/1dc/models.tar.gz --user=<user> --ask-password
37 39
@@ -40,13 +42,38 @@ line by typing: @@ -40,13 +42,38 @@ line by typing:
40 Don't type the ``$`` symbol. It indicates that a command should be typed 42 Don't type the ``$`` symbol. It indicates that a command should be typed
41 on the command line of your terminal. 43 on the command line of your terminal.
42 44
43 -After downloading, uncompress the files at any place by typing 45 +To make sure that you have the relevant files you may check the MD5 checksums
  46 +after downloading by typing for example
  47 +
  48 +.. code-block:: bash
  49 +
  50 + $ md5 gps.tar.gz
  51 +
  52 +on Mac OS X or
  53 +
  54 +.. code-block:: bash
  55 +
  56 + $ md5sum gps.tar.gz
  57 +
  58 +on Linux. Below the expected results:
  59 +
  60 +.. code-block:: bash
  61 +
  62 + gps.tar.gz c7129c71e911920f82273270c9d7c818
  63 + gc.tar.gz 07aa46bb2d67cd64fa4685078643b043
  64 + egal.tar.gz 4ea5f2ff8312b700dcc133a89d9fd096
  65 + agn.tar.gz cef82d6772bd123cd9c6949aeede9d71
  66 + caldb.tar.gz ce718128e1b2fe19c4b8dc79b688d113
  67 + models.tar.gz 87662cf53a2988522f485cad984d8810
  68 +
  69 +Now uncompress the files at any place by typing
44 70
45 .. code-block:: bash 71 .. code-block:: bash
46 72
47 $ tar xfvz gps.tar.gz 73 $ tar xfvz gps.tar.gz
48 $ tar xfvz gc.tar.gz 74 $ tar xfvz gc.tar.gz
49 $ tar xfvz egal.tar.gz 75 $ tar xfvz egal.tar.gz
  76 + $ tar xfvz agn.tar.gz
50 $ tar xfvz caldb.tar.gz 77 $ tar xfvz caldb.tar.gz
51 $ tar xfvz models.tar.gz 78 $ tar xfvz models.tar.gz
52 79
doc/source/users/tutorials/1dc/getting_tools.rst
@@ -6,14 +6,14 @@ Getting the analysis tools @@ -6,14 +6,14 @@ Getting the analysis tools
6 We recommend that you use ctools to analyse the data from the 6 We recommend that you use ctools to analyse the data from the
7 :ref:`first CTA Data Challenge <glossary_1dc>`. 7 :ref:`first CTA Data Challenge <glossary_1dc>`.
8 8
9 -The reference version for the Data Challenge is ``ctools-1.4.0``.  
10 -``ctools-1.4.0`` depends on ``gammalib-1.4.0``. You may either download 9 +The reference version for the Data Challenge is ``ctools-1.4.2``.
  10 +``ctools-1.4.2`` depends on ``gammalib-1.4.2``. You may either download
11 the source code for both packages or use a pre-compiled binary package for 11 the source code for both packages or use a pre-compiled binary package for
12 Mac OS X that includes all necessary code: 12 Mac OS X that includes all necessary code:
13 13
14 -* `Mac OS X binary package <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.0-macosx10.7.dmg>`_ (Mac OS X 10.7+)  
15 -* `GammaLib <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.0.tar.gz>`_ source code tarball  
16 -* `ctools <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.0.tar.gz>`_ source code tarball 14 +* `Mac OS X binary package <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2-macosx10.7.dmg>`_ (Mac OS X 10.7+)
  15 +* `GammaLib <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-1.4.2.tar.gz>`_ source code tarball
  16 +* `ctools <http://cta.irap.omp.eu/ctools/releases/ctools/ctools-1.4.2.tar.gz>`_ source code tarball
17 17
18 After downloading, configure GammaLib and ctools as follows: 18 After downloading, configure GammaLib and ctools as follows:
19 19
doc/source/users/tutorials/1dc/scope.rst
@@ -38,15 +38,16 @@ conditions; only zenith angles of 20 degrees and 40 degrees were @@ -38,15 +38,16 @@ conditions; only zenith angles of 20 degrees and 40 degrees were
38 simulated. 38 simulated.
39 Data are provided for the baseline arrays. 39 Data are provided for the baseline arrays.
40 40
41 -Three Key Science Projects (KSPs) were simulated using realistic pointing 41 +Four Key Science Projects (KSPs) were simulated using realistic pointing
42 patterns as defined in the CTA Science Case document: 42 patterns as defined in the CTA Science Case document:
43 43
44 * the Galactic Plane Scan (GPS) 44 * the Galactic Plane Scan (GPS)
45 * the Galactic Centre Survey (GC) 45 * the Galactic Centre Survey (GC)
46 * the Extragalactic Survey (EGAL) 46 * the Extragalactic Survey (EGAL)
  47 +* an AGN monitoring program (AGN)
47 48
48 The source model used for the simulations is distributed together with the 49 The source model used for the simulations is distributed together with the
49 data to the CTA Consortium Science Working Groups, so that analysis results 50 data to the CTA Consortium Science Working Groups, so that analysis results
50 can be compared to the Monte Carlo truth. The same source model was used for 51 can be compared to the Monte Carlo truth. The same source model was used for
51 -the simulation of all three surveys. 52 +all simulations.
52 53