Commit e6e41a4e74b56036b30393af3c89b26b2ba0e4d5

Authored by Jürgen Knödlseder
1 parent 2ffff33d

Reorganise User documentation.

doc/source/_templates/index.html
@@ -2,45 +2,46 @@ @@ -2,45 +2,46 @@
2 body %} 2 body %}
3 <h1>{{ _('GammaLib') }}</h1> 3 <h1>{{ _('GammaLib') }}</h1>
4 4
5 -<h2 style="margin-bottom: 0">{%trans%}About{%endtrans%}</h2>  
6 -  
7 -<p>{%trans%} The GammaLib is a versatile toolbox for the high-level  
8 - analysis of astronomical gamma-ray data. It is implemented as a C++  
9 - library that is fully scriptable in the Python scripting language. The  
10 - library provides core functionalities such as data input and output,  
11 - interfaces for parameter specifications, and a reporting and logging  
12 - interface. It implements instruments specific functionalities such as  
13 - instrument response functions and data formats. Instrument specific  
14 - functionalities share a common interface to allow for extension of the  
15 - GammaLib to include new gamma-ray instruments. The GammaLib provides an  
16 - abstract data analysis framework that enables simultaneous  
17 - multi-mission analysis. {%endtrans%}</p> 5 +<p>{%trans%} GammaLib is a versatile toolbox for the high-level analysis
  6 +of astronomical gamma-ray data. It consists of a C++ library and a
  7 +Python module that exposes the full functionality of the library
  8 +to Python. The library provides an abstract data analysis framework
  9 +that is independent of any specific gamma-ray telescope. Instrument
  10 +specific aspects, such as handling of data formats and response
  11 +functions, are implemented as isolated and well defined modules sharing
  12 +an identical abstract interface. This enables a joint multi-instrument
  13 +analysis of data, allowing for consistent broad-band spectral fitting
  14 +or imaging. So far, GammaLib supports analysis of data obtained with
  15 +COMPTEL, Fermi/LAT, and Cherenkov telescopes (CTA, H.E.S.S., MAGIC,
  16 +VERITAS). {%endtrans%}</p>
18 17
19 <p>{%trans%} Except for HEASARC's cfitsio library that is used to implement 18 <p>{%trans%} Except for HEASARC's cfitsio library that is used to implement
20 -the FITS interface, GammaLib does not rely on any other third-party  
21 -software.  
22 -Large parts of the code treat gamma-ray observations in an abstract  
23 -representation, and do neither depend on the characteristics of the  
24 -employed instrument, nor on the particular formats in which data and  
25 -instrument response functions are delivered. Instrument specific  
26 -aspects are implemented as isolated and well defined modules that  
27 -interact with the rest of the library through a common interface. This  
28 -philosophy also enables the joint analysis of data from different  
29 -instruments, providing a framework that allows for consistent  
30 -broad-band spectral fitting or imaging. So far, GammaLib supports  
31 -analysis of COMPTEL, Fermi/LAT, and Cherenkov telescope data  
32 -(CTA, H.E.S.S., MAGIC, VERITAS). {%endtrans%}</p> 19 +the FITS interface, GammaLib does not rely on any third-party
  20 +software. All functionalities are implemented natively. {%endtrans%}</p>
  21 +
  22 +<p>{%trans%} ctools are developed by a team of enthousiastic gamma-ray
  23 +astronomers with support from engineers. We regularily organise
  24 +<a href=https://cta-redmine.irap.omp.eu/projects/ctools/wiki/Coding_sprints>coding sprints</a>
  25 +where key developers but also newcomers meet to discuss the developments
  26 +and next steps, and advance with the coding of the software. {%endtrans%}</p>
33 27
34 <p>{%trans%} GammaLib is free software distributed under the 28 <p>{%trans%} GammaLib is free software distributed under the
35 <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL license version 3</a> {%endtrans%}</p> 29 <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL license version 3</a> {%endtrans%}</p>
36 30
37 -<h2 style="margin-bottom: 0">{%trans%}Documentation{%endtrans%}</h2> 31 +<h2 style="margin-bottom: 0">{%trans%}Getting started{%endtrans%}</h2>
38 32
39 <ul> 33 <ul>
40 <li><a class="smalllink" href="{{ pathto("installation") }}">{%trans%}Installation{%endtrans%}</a></li> 34 <li><a class="smalllink" href="{{ pathto("installation") }}">{%trans%}Installation{%endtrans%}</a></li>
41 <li><a class="smalllink" href="{{ pathto("quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li> 35 <li><a class="smalllink" href="{{ pathto("quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li>
  36 +</ul>
  37 +
  38 +<h2 style="margin-bottom: 0">{%trans%}Documentation{%endtrans%}</h2>
  39 +
  40 +<ul>
42 <li><a class="smalllink" href="{{ pathto("user_manual/index") }}">{%trans%}User Manual{%endtrans%}</a></li> 41 <li><a class="smalllink" href="{{ pathto("user_manual/index") }}">{%trans%}User Manual{%endtrans%}</a></li>
43 <li><a class="smalllink" href="{{ pathto("howto/index") }}">{%trans%}How To{%endtrans%}</a></li> 42 <li><a class="smalllink" href="{{ pathto("howto/index") }}">{%trans%}How To{%endtrans%}</a></li>
  43 +<li><a class="smalllink" href="{{ pathto("faq") }}">{%trans%}Frequently asked questions{%endtrans%}</a></li>
  44 +<li><a class="smalllink" href="{{ pathto("issues") }}">{%trans%}Known issues{%endtrans%}</a></li>
44 <li><a class="smalllink" href="{{ pathto("coding/index") }}">{%trans%}Coding conventions{%endtrans%}</a></li> 45 <li><a class="smalllink" href="{{ pathto("coding/index") }}">{%trans%}Coding conventions{%endtrans%}</a></li>
45 <li><a class="smalllink" href="doxygen/index.html">{%trans%}Code documentation (Doxygen){%endtrans%}</a></li> 46 <li><a class="smalllink" href="doxygen/index.html">{%trans%}Code documentation (Doxygen){%endtrans%}</a></li>
46 </ul> 47 </ul>
@@ -49,5 +50,5 @@ analysis of COMPTEL, Fermi/LAT, and Cherenkov telescope data @@ -49,5 +50,5 @@ analysis of COMPTEL, Fermi/LAT, and Cherenkov telescope data
49 50
50 <ul> 51 <ul>
51 <li><a href="https://cta-redmine.irap.omp.eu/projects/gammalib">Developer's pages</a></li> 52 <li><a href="https://cta-redmine.irap.omp.eu/projects/gammalib">Developer's pages</a></li>
52 - <li><a href="https://www.ohloh.net/p/GammaLib">Gammalib on Ohloh</a>{% endblock %}</li> 53 + <li><a href="https://www.openhub.net/p/GammaLib">Gammalib on Open HUB</a>{% endblock %}</li>
53 </ul> 54 </ul>
doc/source/_themes/sphinx13/layout.html
@@ -67,19 +67,20 @@ @@ -67,19 +67,20 @@
67 {% block header %} 67 {% block header %}
68 <div class="pageheader"> 68 <div class="pageheader">
69 <ul> 69 <ul>
70 - <li><a href="{{ pathto('index') }}">Home</a></li>  
71 - <li><a href="{{ pathto('installation') }}">Get it</a></li>  
72 - <li><a href="{{ pathto('contents') }}">Docs</a></li>  
73 - <li><a href="https://cta-redmine.irap.omp.eu/projects/gammalib">Extend/Develop</a></li> 70 + <li><a href="{{ pathto('about') }}">About</a></li>
  71 + <li><a href="{{ pathto('download') }}">Download</a></li>
  72 + <li><a href="{{ pathto('contents') }}">Documentation</a></li>
  73 + <li><a href="{{ pathto('develop') }}">Develop</a></li>
  74 + <li><a href="{{ pathto('help') }}">Help</a></li>
74 </ul> 75 </ul>
75 <div> 76 <div>
76 <a href="{{ pathto('index') }}"> 77 <a href="{{ pathto('index') }}">
77 <div class=banner_part> 78 <div class=banner_part>
78 - <img src="{{ pathto('_static/logo.png', 1) }}" height="64" alt="SPHINX" /> 79 + <img src="{{ pathto('_static/logo.png', 1) }}" height="64" alt="GammaLib" />
79 </div> 80 </div>
80 <div class=banner_part> 81 <div class=banner_part>
81 <span id="banner_text1">GammaLib</span><br/> 82 <span id="banner_text1">GammaLib</span><br/>
82 - <span id="banner_text2">A versatile toolbox for scientific analysis of astronomical gamma-ray data</span> 83 + <span id="banner_text2">A versatile toolbox for scientific analysis of astronomical gamma-ray data</span>
83 </div> 84 </div>
84 </a> 85 </a>
85 </div> 86 </div>
doc/source/about.rst 0 → 100644
  1 +.. _about:
  2 +
  3 +About
  4 +=====
  5 +
  6 +GammaLib is a versatile toolbox for the high-level analysis
  7 +of astronomical gamma-ray data. It consists of a C++ library and a
  8 +Python module that exposes the full functionality of the library
  9 +to Python. The library provides an abstract data analysis framework
  10 +that is independent of any specific gamma-ray telescope. Instrument
  11 +specific aspects, such as handling of data formats and response
  12 +functions, are implemented as isolated and well defined modules sharing
  13 +an identical abstract interface. This enables a joint multi-instrument
  14 +analysis of data, allowing for consistent broad-band spectral fitting
  15 +or imaging. So far, GammaLib supports analysis of data obtained with
  16 +COMPTEL, Fermi/LAT, and Cherenkov telescopes (CTA, H.E.S.S., MAGIC,
  17 +VERITAS).
  18 +
  19 +Except for HEASARC's cfitsio library that is used to implement
  20 +the FITS interface, GammaLib does not rely on any third-party
  21 +software. All functionalities are implemented natively.
  22 +
  23 +GammaLib is developed by a team of enthousiastic gamma-ray astronomers with
  24 +support from engineers. We regularily organise
  25 +`coding sprints <https://cta-redmine.irap.omp.eu/projects/ctools/wiki/Coding_sprints>`_
  26 +where key developers but also newcomers meet to discuss the developments
  27 +and next steps, and advance with the coding of the software.
  28 +
  29 +
  30 +Acknowledging or citing GammaLib
  31 +--------------------------------
  32 +
  33 +If you use GammaLib for work/research presented in a publication we ask you
  34 +that you include the following standard acknowledgment:
  35 +
  36 + *This research made use of GammaLib, a community-developed toolbox for
  37 + the high-level analysis of astronomical gamma-ray data.*
  38 +
  39 +If you wish, you can also include a link to http://cta.irap.omp.eu/gammalib/
  40 +(if the journal allows this) in addition to the above text.
  41 +
  42 +If you are giving a presentation or talk featuring work/research that makes
  43 +use of GammaLib, we suggest using this logo on your title slide:
  44 +
  45 +.. figure:: gammalib-logo.jpg
  46 + :width: 150px
  47 + :align: center
  48 +
  49 +
  50 +License
  51 +-------
  52 +
  53 +GammaLib is free software distributed under the GNU GPL license version 3.
doc/source/contents.rst
@@ -9,8 +9,14 @@ Documentation @@ -9,8 +9,14 @@ Documentation
9 .. toctree:: 9 .. toctree::
10 :maxdepth: 2 10 :maxdepth: 2
11 11
  12 + about
  13 + download
12 installation 14 installation
13 quickstart 15 quickstart
14 user_manual/index 16 user_manual/index
15 howto/index 17 howto/index
  18 + faq
  19 + issues
16 coding/index 20 coding/index
  21 + develop
  22 + help
17 \ No newline at end of file 23 \ No newline at end of file
doc/source/develop.rst 0 → 100644
  1 +.. _develop:
  2 +
  3 +Develop
  4 +=======
  5 +
  6 +GammaLib is an open source projet and you are highly welcome to contribute
  7 +to the development.
  8 +Contributions can come in any areas: writing C++ code, contributing Python
  9 +scripts, writing documentation, testing code, etc.
  10 +
  11 +The GammaLib development is managed by a development platform that is
  12 +accessible at `<https://cta-redmine.irap.omp.eu/projects/gammalib/>`_.
  13 +Please check out the
  14 +`Wiki <https://cta-redmine.irap.omp.eu/projects/gammalib/wiki/Contributing_to_GammaLib>`_
  15 +on that platform that contains information on how to contribute to the
  16 +GammaLib development.
  17 +
  18 +You may also want to get in the GammaLib information flow by subscribing to
  19 +the ctools@irap.omp.eu mailing list.
  20 +To subscribe simply send an e-mail to ctools-subscribe@irap.omp.eu.
  21 +
  22 +We are organising regular `Coding sprints <https://cta-redmine.irap.omp.eu/projects/ctools/wiki/Coding_sprints>`_
  23 +to allow newcomers to get familiar with the code base and the coding
  24 +practices.
  25 +You are highly invited to join one of the next coding sprints.
  26 +
  27 +You can also follow `@gammalib <https://twitter.com/gammalib>`_ on
  28 +twitter to get informed about new release of GammaLib.
0 \ No newline at end of file 29 \ No newline at end of file
doc/source/download.rst 0 → 100644
  1 +.. _download:
  2 +
  3 +Download
  4 +========
  5 +
  6 +GammaLib can be obtained in form of releases or directly from the git
  7 +development repository. Prefer a release if you intend using GammaLib
  8 +for production (and publications). Clone the code from git if you need
  9 +the most recent code that implements new features and corrects known
  10 +bugs.
  11 +
  12 +
  13 +Releases
  14 +--------
  15 +
  16 +The latest GammaLib release is
  17 +`gammalib-0.11.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-0.11.0.tar.gz>`_
  18 +(1 November 2015).
  19 +
  20 +To download an older release, click on the corresponding release number:
  21 +`0.10.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-0.10.0.tar.gz>`_
  22 +`0.9.1 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-09-01.tar.gz>`_
  23 +`0.9.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-09-00.tar.gz>`_
  24 +`0.8.1 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-08-01.tar.gz>`_
  25 +`0.8.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-08-00.tar.gz>`_
  26 +`0.7.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-07-00.tar.gz>`_
  27 +`0.6.2 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-06-02.tar.gz>`_
  28 +`0.6.1 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-06-01.tar.gz>`_
  29 +`0.5.0 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-05-00.tar.gz>`_
  30 +`0.4.2 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-04-02.tar.gz>`_
  31 +`0.4.11 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-04-11.tar.gz>`_
  32 +`0.4.10 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-04-10.tar.gz>`_
  33 +`0.4.9 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-04-09.tar.gz>`_
  34 +`0.4.7 <http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-00-04-07.tar.gz>`_
  35 +
  36 +
  37 +Git repository
  38 +--------------
  39 +
  40 +To clone the gammalib source code, type
  41 +
  42 +.. code-block:: bash
  43 +
  44 + $ git clone https://cta-git.irap.omp.eu/gammalib
  45 +
  46 +This will create a gammalib directory under the current working directory
  47 +that will contain the gammalib source code. In case that the cloning does
  48 +not work you may try adding
  49 +
  50 +.. code-block:: bash
  51 +
  52 + $ export GIT_SSL_NO_VERIFY=true
  53 +
  54 +or
  55 +
  56 +.. code-block:: bash
  57 +
  58 + $ git config --global http.sslverify "false"
  59 +
  60 +before retrieving the code.
  61 +Before you will be able to compile the code you need to generate the
  62 +configuration file using the ``autogen.sh`` script.
  63 +Also make sure that you're actually on the devel branch of the git
  64 +repository. GammaLib can be compiled and configured using
  65 +the following command sequence (the code will be installed into the
  66 +``/usr/local/gamma`` directory):
  67 +
  68 +.. code-block:: bash
  69 +
  70 + $ cd gammalib
  71 + $ git checkout devel
  72 + $ ./autogen.sh
  73 + $ ./configure
  74 + $ make
  75 + $ make check
  76 + $ sudo make install
  77 + $ export GAMMALIB=/usr/local/gamma
  78 + $ source $GAMMALIB/bin/gammalib-init.sh
  79 +
  80 +Please read the :ref:`installation` section if you need more information on
  81 +how to install GammaLib.
  82 +
  83 +.. note::
  84 +
  85 + You need `swig <http://www.swig.org/>`_ on your system to build the
  86 + Python wrappers when you get the code from Git. Python wrappers are
  87 + not stored in the Git repository but are built using
  88 + `swig <http://www.swig.org/>`_ from interface files located in the
  89 + pyext folder. However, you do not need `swig <http://www.swig.org/>`_
  90 + when fetching a release as the Python wrappers are bundled with the
  91 + release tarballs.
doc/source/faq.rst 0 → 100644
  1 +.. _faq:
  2 +
  3 +Frequently asked questions
  4 +==========================
  5 +
  6 +This page will collect a list of frequently asked questions that has been
  7 +compiled from your user experience and feedback.
doc/source/gammalib-logo.jpg 0 → 100644

183 KB

doc/source/help.rst 0 → 100644
  1 +.. _help:
  2 +
  3 +Getting Help
  4 +============
  5 +
  6 +Any questions, bug reports, or suggested enhancements related to
  7 +GammaLib should be submitted via the
  8 +`issue tracker <https://cta-redmine.irap.omp.eu/projects/gammalib/issues/new>`_
  9 +or the
  10 +`mailing list <mailto:ctools@irap.omp.eu>`_.
0 \ No newline at end of file 11 \ No newline at end of file
doc/source/installation.rst
@@ -262,111 +262,3 @@ To check man support, type for example :: @@ -262,111 +262,3 @@ To check man support, type for example ::
262 $ man GObservations 262 $ man GObservations
263 263
264 and you should see the documentation for the GObservations C++ class. 264 and you should see the documentation for the GObservations C++ class.
265 -  
266 -.. _issues:  
267 -  
268 -Known issues  
269 -------------  
270 -  
271 -.. topic:: Many (but not all) unit tests fails  
272 -  
273 - Occasionally it may happen that the cfitsio library is not found when  
274 - configuring GammaLib. The library will compile successfully without  
275 - cfitsio, but in that case FITS I/O will not be supported. Consequently,  
276 - many unit tests will fail. If you are sure that cfitsio is installed,  
277 - but the path where the library and the path where the ``fitsio.h`` header  
278 - reside are non-standard, you may add the paths explicitly during  
279 - configuration using::  
280 -  
281 - $ ./configure LDFLAGS='-L/path/to/cftsio/library' CPPFLAGS='-I/path/to/fitsio.h/header'  
282 -  
283 - The same logic applies for finding the readline and ncurses libraries,  
284 - although these libraries are not manadatory for getting the full  
285 - GammaLib functionalities.  
286 -  
287 -.. topic:: Python module does not work  
288 -  
289 - GammaLib includes a Python module that is built from so called wrapper  
290 - files that are autogenerated using the `swig <http://www.swig.org/>`_  
291 - tool. These wrapper files are shipped with a GammaLib release, but if  
292 - you use the code from git you need `swig <http://www.swig.org/>`_  
293 - to generate the wrapper files during the build step. In any case,  
294 - to compile the Python module GammaLib needs the ``Python.h`` header file  
295 - which may not necessarily be installed on your system. Check the output  
296 - of ``./configure`` to examine the configuration that GammaLib has  
297 - detected. You may see the following::  
298 -  
299 - * Python (yes)  
300 - * Python.h (yes)  
301 - * Python wrappers (yes)  
302 - * swig (yes)  
303 -  
304 - Recall, if the wrappers exist you do not need `swig <http://www.swig.org/>`_,  
305 - but if the wrappers don't exist you need `swig <http://www.swig.org/>`_.  
306 - If the ``Python.h`` header file does not exist then install the Python  
307 - development package.  
308 -  
309 -.. topic:: Python unit test fail on El Capitan  
310 -  
311 - On Mac OS X 10.11 (El Capitan) the Python unit tests fail when GammaLib  
312 - is not installed due to the way the ``DYLD_LIBRARY_PATH`` environment  
313 - variable is handled by the operating system. A (not very elegant)  
314 - workaround is to install GammaLib before running the unit test using  
315 - ``make check``.  
316 -  
317 -  
318 -.. topic:: Mac OS X  
319 -  
320 - Dependent on the Mac OS X version you are using, not everything that  
321 - is needed to install GammaLib may be available (e.g. automake, libtool,  
322 - etc...). The easiest way to get the needed software is using a package  
323 - management system such as `MacPorts <https://www.macports.org/>`_ or  
324 - `Homebrew <http://brew.sh/>`_. On a fresh El Capitan install you need  
325 - for example the following from `Homebrew <http://brew.sh/>`_::  
326 -  
327 - $ brew install automake  
328 - $ brew install libtool  
329 - $ brew install cfitsio  
330 - $ brew install swig  
331 -  
332 - `swig <http://www.swig.org/>`_ is only necessary if you installed the  
333 - code from git. Dependening on your system, you also may need to install  
334 - the Python development package.  
335 -  
336 -.. topic:: Solaris  
337 -  
338 - Although GammaLib builds on Solaris using the Sun compiler, there are  
339 - problems with global symbols in shared libraries and exception catching,  
340 - which prevents the FITS interface to work correctly. GammaLib has  
341 - however been built and tested successfully using the GNU compiler, and  
342 - this is the only build method that is currently supported. Problems have  
343 - also been encountered when compiling cfitsio versions more recent than  
344 - 3.250. The problems have been reported to the cfitsio developer team,  
345 - and are likely to be solved in the future. For the time being, it is  
346 - recommended to use cfitsio version 3.250 on Solaris.  
347 -  
348 -.. topic:: OpenSolaris  
349 -  
350 - On OpenSolaris, the same problems concerning the SunStudio compiler  
351 - occur as for Solaris, and also here, the GNU compiler is the recommended  
352 - tool to build GammaLib. Also here, cfitsio version 3.250 is the  
353 - recommended library as more recent version feature relocation  
354 - problems. GammaLib has been tested using gcc 4.3.2 on OpenSolaris  
355 - 2009.06. Make sure to create the following symbolic links if they do  
356 - not yet exist on your system ::  
357 -  
358 - $ ln -s /usr/bin/gcc4.3.2 /usr/bin/gcc  
359 - $ ln -s /usr/bin/g++4.3.2 /usr/bin/g++  
360 -  
361 - They avoid excess warnings during compilation.  
362 -  
363 -.. _help:  
364 -  
365 -Getting Help  
366 -------------  
367 -  
368 -Any questions, bug reports, or suggested enhancements related to  
369 -GammaLib should be submitted via the  
370 -`issue tracker <https://cta-redmine.irap.omp.eu/projects/gammalib/issues/new>`_  
371 -or the  
372 -`mailing list <mailto:ctools@irap.omp.eu>`_.  
373 \ No newline at end of file 265 \ No newline at end of file
doc/source/issues.rst 0 → 100644
  1 +.. _issues:
  2 +
  3 +Known issues
  4 +============
  5 +
  6 +Below you will find a list of known issues.
  7 +
  8 +- :ref:`Many (but not all) unit tests fail <issue_test_fail>`
  9 +- :ref:`Python module does not work <issue_python>`
  10 +- :ref:`Python unit test fails on El Capitan <issue_elcapitan>`
  11 +- :ref:`Mac OS X <issue_macosx>`
  12 +- :ref:`Solaris <issue_solaris>`
  13 +- :ref:`OpenSolaris <issue_opensolaris>`
  14 +
  15 +.. _issue_test_fail:
  16 +
  17 +.. topic:: Many (but not all) unit tests fail
  18 +
  19 + Occasionally it may happen that the cfitsio library is not found when
  20 + configuring GammaLib. The library will compile successfully without
  21 + cfitsio, but in that case FITS I/O will not be supported. Consequently,
  22 + many unit tests will fail. If you are sure that cfitsio is installed,
  23 + but the path where the library and the path where the ``fitsio.h`` header
  24 + reside are non-standard, you may add the paths explicitly during
  25 + configuration using::
  26 +
  27 + $ ./configure LDFLAGS='-L/path/to/cftsio/library' CPPFLAGS='-I/path/to/fitsio.h/header'
  28 +
  29 + The same logic applies for finding the readline and ncurses libraries,
  30 + although these libraries are not manadatory for getting the full
  31 + GammaLib functionalities.
  32 +
  33 +.. _issue_python:
  34 +
  35 +.. topic:: Python module does not work
  36 +
  37 + GammaLib includes a Python module that is built from so called wrapper
  38 + files that are autogenerated using the `swig <http://www.swig.org/>`_
  39 + tool. These wrapper files are shipped with a GammaLib release, but if
  40 + you use the code from git you need `swig <http://www.swig.org/>`_
  41 + to generate the wrapper files during the build step. In any case,
  42 + to compile the Python module GammaLib needs the ``Python.h`` header file
  43 + which may not necessarily be installed on your system. Check the output
  44 + of ``./configure`` to examine the configuration that GammaLib has
  45 + detected. You may see the following::
  46 +
  47 + * Python (yes)
  48 + * Python.h (yes)
  49 + * Python wrappers (yes)
  50 + * swig (yes)
  51 +
  52 + Recall, if the wrappers exist you do not need `swig <http://www.swig.org/>`_,
  53 + but if the wrappers don't exist you need `swig <http://www.swig.org/>`_.
  54 + If the ``Python.h`` header file does not exist then install the Python
  55 + development package.
  56 +
  57 +.. _issue_elcapitan:
  58 +
  59 +.. topic:: Python unit test fails on El Capitan
  60 +
  61 + On Mac OS X 10.11 (El Capitan) the Python unit tests fail when GammaLib
  62 + is not installed due to the way the ``DYLD_LIBRARY_PATH`` environment
  63 + variable is handled by the operating system. A (not very elegant)
  64 + workaround is to install GammaLib before running the unit test using
  65 + ``make check``.
  66 +
  67 +.. _issue_macosx:
  68 +
  69 +.. topic:: Mac OS X
  70 +
  71 + Dependent on the Mac OS X version you are using, not everything that
  72 + is needed to install GammaLib may be available (e.g. automake, libtool,
  73 + etc...). The easiest way to get the needed software is using a package
  74 + management system such as `MacPorts <https://www.macports.org/>`_ or
  75 + `Homebrew <http://brew.sh/>`_. On a fresh El Capitan install you need
  76 + for example the following from `Homebrew <http://brew.sh/>`_::
  77 +
  78 + $ brew install automake
  79 + $ brew install libtool
  80 + $ brew install cfitsio
  81 + $ brew install swig
  82 +
  83 + `swig <http://www.swig.org/>`_ is only necessary if you installed the
  84 + code from git. Dependening on your system, you also may need to install
  85 + the Python development package.
  86 +
  87 +.. _issue_solaris:
  88 +
  89 +.. topic:: Solaris
  90 +
  91 + Although GammaLib builds on Solaris using the Sun compiler, there are
  92 + problems with global symbols in shared libraries and exception catching,
  93 + which prevents the FITS interface to work correctly. GammaLib has
  94 + however been built and tested successfully using the GNU compiler, and
  95 + this is the only build method that is currently supported. Problems have
  96 + also been encountered when compiling cfitsio versions more recent than
  97 + 3.250. The problems have been reported to the cfitsio developer team,
  98 + and are likely to be solved in the future. For the time being, it is
  99 + recommended to use cfitsio version 3.250 on Solaris.
  100 +
  101 +.. _issue_opensolaris:
  102 +
  103 +.. topic:: OpenSolaris
  104 +
  105 + On OpenSolaris, the same problems concerning the SunStudio compiler
  106 + occur as for Solaris, and also here, the GNU compiler is the recommended
  107 + tool to build GammaLib. Also here, cfitsio version 3.250 is the
  108 + recommended library as more recent version feature relocation
  109 + problems. GammaLib has been tested using gcc 4.3.2 on OpenSolaris
  110 + 2009.06. Make sure to create the following symbolic links if they do
  111 + not yet exist on your system ::
  112 +
  113 + $ ln -s /usr/bin/gcc4.3.2 /usr/bin/gcc
  114 + $ ln -s /usr/bin/g++4.3.2 /usr/bin/g++
  115 +
  116 + They avoid excess warnings during compilation.
doc/source/user_manual/getting.rst
@@ -533,109 +533,3 @@ can type :: @@ -533,109 +533,3 @@ can type ::
533 533
534 which then returns the synopsis and detailed documentation for the 534 which then returns the synopsis and detailed documentation for the
535 requested class. 535 requested class.
536 -  
537 -Getting support  
538 ----------------  
539 -  
540 -Any questions, bug reports, or suggested enhancements related to  
541 -GammaLib should be submitted via the  
542 -`issue tracker <https://cta-redmine.irap.omp.eu/projects/gammalib/issues/new>`_  
543 -or the  
544 -`mailing list <mailto:ctools@irap.omp.eu>`_.  
545 -  
546 -.. _sec_known_problems:  
547 -  
548 -Known issues  
549 -------------  
550 -  
551 -.. topic:: Many (but not all) unit tests fails  
552 -  
553 - Occasionally it may happen that the cfitsio library is not found when  
554 - configuring GammaLib. The library will compile successfully without  
555 - cfitsio, but in that case FITS I/O will not be supported. Consequently,  
556 - many unit tests will fail. If you are sure that cfitsio is installed,  
557 - but the path where the library and the path where the ``fitsio.h`` header  
558 - reside are non-standard, you may add the paths explicitly during  
559 - configuration using::  
560 -  
561 - $ ./configure LDFLAGS='-L/path/to/cftsio/library' CPPFLAGS='-I/path/to/fitsio.h/header'  
562 -  
563 - The same logic applies for finding the readline and ncurses libraries,  
564 - although these libraries are not manadatory for getting the full  
565 - GammaLib functionalities.  
566 -  
567 -.. topic:: Python module does not work  
568 -  
569 - GammaLib includes a Python module that is built from so called wrapper  
570 - files that are autogenerated using the `swig <http://www.swig.org/>`_  
571 - tool. These wrapper files are shipped with a GammaLib release, but if  
572 - you use the code from git you need `swig <http://www.swig.org/>`_  
573 - to generate the wrapper files during the build step. In any case,  
574 - to compile the Python module GammaLib needs the ``Python.h`` header file  
575 - which may not necessarily be installed on your system. Check the output  
576 - of ``./configure`` to examine the configuration that GammaLib has  
577 - detected. You may see the following::  
578 -  
579 - * Python (yes)  
580 - * Python.h (yes)  
581 - * Python wrappers (yes)  
582 - * swig (yes)  
583 -  
584 - Recall, if the wrappers exist you do not need `swig <http://www.swig.org/>`_,  
585 - but if the wrappers don't exist you need `swig <http://www.swig.org/>`_.  
586 - If the ``Python.h`` header file does not exist then install the Python  
587 - development package.  
588 -  
589 -.. topic:: Python unit test fail on El Capitan  
590 -  
591 - On Mac OS X 10.11 (El Capitan) the Python unit tests fail when GammaLib  
592 - is not installed due to the way the ``DYLD_LIBRARY_PATH`` environment  
593 - variable is handled by the operating system. A (not very elegant)  
594 - workaround is to install GammaLib before running the unit test using  
595 - ``make check``.  
596 -  
597 -  
598 -.. topic:: Mac OS X  
599 -  
600 - Dependent on the Mac OS X version you are using, not everything that  
601 - is needed to install GammaLib may be available (e.g. automake, libtool,  
602 - etc...). The easiest way to get the needed software is using a package  
603 - management system such as `MacPorts <https://www.macports.org/>`_ or  
604 - `Homebrew <http://brew.sh/>`_. On a fresh El Capitan install you need  
605 - for example the following from `Homebrew <http://brew.sh/>`_::  
606 -  
607 - $ brew install automake  
608 - $ brew install libtool  
609 - $ brew install cfitsio  
610 - $ brew install swig  
611 -  
612 - `swig <http://www.swig.org/>`_ is only necessary if you installed the  
613 - code from git. Dependening on your system, you also may need to install  
614 - the Python development package.  
615 -  
616 -.. topic:: Solaris  
617 -  
618 - Although GammaLib builds on Solaris using the Sun compiler, there are  
619 - problems with global symbols in shared libraries and exception catching,  
620 - which prevents the FITS interface to work correctly. GammaLib has  
621 - however been built and tested successfully using the GNU compiler, and  
622 - this is the only build method that is currently supported. Problems have  
623 - also been encountered when compiling cfitsio versions more recent than  
624 - 3.250. The problems have been reported to the cfitsio developer team,  
625 - and are likely to be solved in the future. For the time being, it is  
626 - recommended to use cfitsio version 3.250 on Solaris.  
627 -  
628 -.. topic:: OpenSolaris  
629 -  
630 - On OpenSolaris, the same problems concerning the SunStudio compiler  
631 - occur as for Solaris, and also here, the GNU compiler is the recommended  
632 - tool to build GammaLib. Also here, cfitsio version 3.250 is the  
633 - recommended library as more recent version feature relocation  
634 - problems. GammaLib has been tested using gcc 4.3.2 on OpenSolaris  
635 - 2009.06. Make sure to create the following symbolic links if they do  
636 - not yet exist on your system ::  
637 -  
638 - $ ln -s /usr/bin/gcc4.3.2 /usr/bin/gcc  
639 - $ ln -s /usr/bin/g++4.3.2 /usr/bin/g++  
640 -  
641 - They avoid excess warnings during compilation.  
doc/source/user_manual/introduction.rst
@@ -49,7 +49,7 @@ GammaLib is designed to compile on any POSIX compliant platform. So far, @@ -49,7 +49,7 @@ GammaLib is designed to compile on any POSIX compliant platform. So far,
49 GammaLib has been successfully compiled and tested on Mac OS X, OpenBSD, OpenSolaris 49 GammaLib has been successfully compiled and tested on Mac OS X, OpenBSD, OpenSolaris
50 (using the gcc compiler) and many Linux flavours. Pre-packed binary 50 (using the gcc compiler) and many Linux flavours. Pre-packed binary
51 versions of the code are also available for Mac OS X. For known problems 51 versions of the code are also available for Mac OS X. For known problems
52 -with specific platforms, please refer to the :ref:`sec_known_problems` 52 +with specific platforms, please refer to the :ref:`issues`
53 section. 53 section.
54 54
55 GammaLib makes heavily use of C++ classes. Instrument independency is achieved 55 GammaLib makes heavily use of C++ classes. Instrument independency is achieved
@@ -102,7 +102,6 @@ We regularily organise @@ -102,7 +102,6 @@ We regularily organise
102 where key developers but also newcomers meet to discuss the developments 102 where key developers but also newcomers meet to discuss the developments
103 and next steps, and advance with the coding of the software. 103 and next steps, and advance with the coding of the software.
104 104
105 -  
106 The development of GammaLib has been initiated by scientists from `IRAP (Institut 105 The development of GammaLib has been initiated by scientists from `IRAP (Institut
107 de Recherche en Astrophysique et Planetologie) <http://www.irap.omp.eu/>`_, an 106 de Recherche en Astrophysique et Planetologie) <http://www.irap.omp.eu/>`_, an
108 astrophysics laboratory of CNRS and of the `University Paul Sabatier 107 astrophysics laboratory of CNRS and of the `University Paul Sabatier
doc/source/user_manual/modules/cta_irf.rst
@@ -34,6 +34,8 @@ Performance tables. @@ -34,6 +34,8 @@ Performance tables.
34 Response formats 34 Response formats
35 ^^^^^^^^^^^^^^^^ 35 ^^^^^^^^^^^^^^^^
36 36
  37 +.. _sec_cta_rsptable:
  38 +
37 Response tables 39 Response tables
38 =============== 40 ===============
39 41
@@ -72,6 +74,8 @@ An example of a CTA response file is shown below: @@ -72,6 +74,8 @@ An example of a CTA response file is shown below:
72 :width: 100% 74 :width: 100%
73 75
74 76
  77 +.. _sec_cta_xspec:
  78 +
75 Xspec response format 79 Xspec response format
76 ===================== 80 =====================
77 81
@@ -87,6 +91,7 @@ the sake of the 1DC, a simple one-dimensional vector had been implemented. @@ -87,6 +91,7 @@ the sake of the 1DC, a simple one-dimensional vector had been implemented.
87 GammaLib still supports handling of the 1DC files, but there are no plans 91 GammaLib still supports handling of the 1DC files, but there are no plans
88 to use this format in the future. 92 to use this format in the future.
89 93
  94 +.. _sec_cta_perftable:
90 95
91 Performance table 96 Performance table
92 ================= 97 =================