Commit dd4f5b2dc51c18579a9adaeaf00c2d877d96a3f5
1 parent
fa8e11ff
Restructure front page and add text to the beyond quickstart section.
Showing
3 changed files
with
46 additions
and
22 deletions
doc/source/_templates/index.html
| @@ -12,15 +12,15 @@ are available in the format defined for CTA. {%endtrans%}</p> | @@ -12,15 +12,15 @@ are available in the format defined for CTA. {%endtrans%}</p> | ||
| 12 | 12 | ||
| 13 | <p>{%trans%} ctools comprises a set of ftools-like binary executables with | 13 | <p>{%trans%} ctools comprises a set of ftools-like binary executables with |
| 14 | a command-line interface allowing for interactive step-wise data analysis. | 14 | a command-line interface allowing for interactive step-wise data analysis. |
| 15 | -ctools comprises also a Python module allowing to control all executables. | 15 | +ctools includes also a Python module allowing to control all executables. |
| 16 | Creation of shell or Python scripts and pipelines is supported. | 16 | Creation of shell or Python scripts and pipelines is supported. |
| 17 | -ctools comprises also cscripts, which are Python scripts that behave like binary | ||
| 18 | -ftools executables. Extensions of the ctools package by user defined binary | ||
| 19 | -executable or Python scripts is supported. {%endtrans%}</p> | 17 | +ctools provides cscripts, which are Python scripts complementing the binary |
| 18 | +executables. Extensions of the ctools package by user defined binary | ||
| 19 | +executables or Python scripts is supported. {%endtrans%}</p> | ||
| 20 | 20 | ||
| 21 | -<p>{%trans%} ctools are based on GammaLib, a versatile toolbox for | ||
| 22 | -the high-level analysis of astronomical gamma-ray data. Besides CTA, | ||
| 23 | -GammaLib supports also the analysis of Fermi/LAT and COMPTEL data, | 21 | +<p>{%trans%} ctools are based on <a href="http://cta.irap.omp.eu/gammalib">GammaLib</a>, |
| 22 | +a versatile toolbox for the high-level analysis of astronomical gamma-ray data. | ||
| 23 | +Besides CTA, GammaLib supports also the analysis of Fermi/LAT and COMPTEL data, | ||
| 24 | and extensions to support further gamma-ray instruments are planned. | 24 | and extensions to support further gamma-ray instruments are planned. |
| 25 | An interface to virtual observatory ressources is also in preparation. | 25 | An interface to virtual observatory ressources is also in preparation. |
| 26 | By making use of the GammaLib multi-instrument capabilities, ctools | 26 | By making use of the GammaLib multi-instrument capabilities, ctools |
| @@ -30,13 +30,21 @@ CTA format), Fermi/LAT and COMPTEL data. {%endtrans%}</p> | @@ -30,13 +30,21 @@ CTA format), Fermi/LAT and COMPTEL data. {%endtrans%}</p> | ||
| 30 | <p>{%trans%} ctools is free software distributed under the | 30 | <p>{%trans%} ctools is free software distributed under the |
| 31 | <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL license version 3</a> {%endtrans%}</p> | 31 | <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL license version 3</a> {%endtrans%}</p> |
| 32 | 32 | ||
| 33 | -<h2 style="margin-bottom: 0">{%trans%}Documentation{%endtrans%}</h2> | 33 | +<h2 style="margin-bottom: 0">{%trans%}Getting started{%endtrans%}</h2> |
| 34 | 34 | ||
| 35 | <ul> | 35 | <ul> |
| 36 | <li><a class="smalllink" href="{{ pathto("user_manual/getting") }}">{%trans%}Installation{%endtrans%}</a></li> | 36 | <li><a class="smalllink" href="{{ pathto("user_manual/getting") }}">{%trans%}Installation{%endtrans%}</a></li> |
| 37 | <li><a class="smalllink" href="{{ pathto("user_manual/getting_started/quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li> | 37 | <li><a class="smalllink" href="{{ pathto("user_manual/getting_started/quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li> |
| 38 | +<li><a class="smalllink" href="{{ pathto("user_manual/getting_started/beyond") }}">{%trans%}Beyond the first steps{%endtrans%}</a></li> | ||
| 38 | <li><a class="smalllink" href="{{ pathto("user_manual/getting_started/models") }}">{%trans%}Modelling CTA data{%endtrans%}</a></li> | 39 | <li><a class="smalllink" href="{{ pathto("user_manual/getting_started/models") }}">{%trans%}Modelling CTA data{%endtrans%}</a></li> |
| 39 | <li><a class="smalllink" href="{{ pathto("user_manual/getting_started/response") }}">{%trans%}CTA response functions{%endtrans%}</a></li> | 40 | <li><a class="smalllink" href="{{ pathto("user_manual/getting_started/response") }}">{%trans%}CTA response functions{%endtrans%}</a></li> |
| 41 | +<li><a class="smalllink" href="{{ pathto("user_manual/getting_started/python") }}">{%trans%}Using ctools from Python{%endtrans%}</a></li> | ||
| 42 | +<li><a class="smalllink" href="{{ pathto("user_manual/getting_started/faq") }}">{%trans%}Frequently asked questions{%endtrans%}</a></li> | ||
| 43 | +</ul> | ||
| 44 | + | ||
| 45 | +<h2 style="margin-bottom: 0">{%trans%}Documentation{%endtrans%}</h2> | ||
| 46 | + | ||
| 47 | +<ul> | ||
| 40 | <li><a class="smalllink" href="{{ pathto("user_manual/index") }}">{%trans%}User Manual{%endtrans%}</a></li> | 48 | <li><a class="smalllink" href="{{ pathto("user_manual/index") }}">{%trans%}User Manual{%endtrans%}</a></li> |
| 41 | <li><a class="smalllink" href="{{ pathto("reference_manual/index") }}">{%trans%}Reference Manual{%endtrans%}</a></li> | 49 | <li><a class="smalllink" href="{{ pathto("reference_manual/index") }}">{%trans%}Reference Manual{%endtrans%}</a></li> |
| 42 | <li><a class="smalllink" href="doxygen/index.html">{%trans%}Source code documentation (Doxygen){%endtrans%}</a></li> | 50 | <li><a class="smalllink" href="doxygen/index.html">{%trans%}Source code documentation (Doxygen){%endtrans%}</a></li> |
doc/source/user_manual/getting_started/beyond.rst
| @@ -4,8 +4,7 @@ Beyond the first steps | @@ -4,8 +4,7 @@ Beyond the first steps | ||
| 4 | ---------------------- | 4 | ---------------------- |
| 5 | 5 | ||
| 6 | Assuming that you have read the :ref:`quickstart <quickstart>` tutorial, | 6 | Assuming that you have read the :ref:`quickstart <quickstart>` tutorial, |
| 7 | -here now some information on how to make the following more complex | ||
| 8 | -analyses: | 7 | +here now some information on how to make more complex analyses: |
| 9 | 8 | ||
| 10 | - :ref:`sec_combining_obs` | 9 | - :ref:`sec_combining_obs` |
| 11 | 10 | ||
| @@ -537,22 +536,22 @@ Real life situations may of course require larger correction factors. | @@ -537,22 +536,22 @@ Real life situations may of course require larger correction factors. | ||
| 537 | 536 | ||
| 538 | .. _sec_tsmap: | 537 | .. _sec_tsmap: |
| 539 | 538 | ||
| 540 | -Generating a Test Statistics map | ||
| 541 | -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 539 | +Generating a Test Statistic map |
| 540 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 542 | 541 | ||
| 543 | In the above examples we were always considering that we knew exactly | 542 | In the above examples we were always considering that we knew exactly |
| 544 | where the source is located, but in real life situations this may not | 543 | where the source is located, but in real life situations this may not |
| 545 | necessarily be the case. | 544 | necessarily be the case. |
| 546 | We thus need a mean to search for significant excess emission in our data. | 545 | We thus need a mean to search for significant excess emission in our data. |
| 547 | -One possibility to accomplish this task is to compute the Test Statistics | 546 | +One possibility to accomplish this task is to compute the Test Statistic |
| 548 | for a specific source at a grid of trial positions. | 547 | for a specific source at a grid of trial positions. |
| 549 | The :ref:`cttsmap` tool will exactly do that job. | 548 | The :ref:`cttsmap` tool will exactly do that job. |
| 550 | -The Test Statistics is defined as twice the log-likelihood difference | 549 | +The Test Statistic is defined as twice the log-likelihood difference |
| 551 | between fitting a source at a given position on top of a model or fitting | 550 | between fitting a source at a given position on top of a model or fitting |
| 552 | no source. | 551 | no source. |
| 553 | -Roughly speaken, the square root of the Test Statistics value gives | 552 | +Roughly speaken, the square root of the Test Statistic value gives |
| 554 | the source detection significance in Gaussian sigmas, although the | 553 | the source detection significance in Gaussian sigmas, although the |
| 555 | -exact releation depends somewhat on the formulation of the statistical | 554 | +exact relation depends somewhat on the formulation of the statistical |
| 556 | problem. | 555 | problem. |
| 557 | 556 | ||
| 558 | Here an example where we apply the :ref:`cttsmap` tool to our two | 557 | Here an example where we apply the :ref:`cttsmap` tool to our two |
| @@ -580,19 +579,19 @@ nominal position of the Crab nebula with a grid spacing of 0.02 degrees. | @@ -580,19 +579,19 @@ nominal position of the Crab nebula with a grid spacing of 0.02 degrees. | ||
| 580 | Image scale (in degrees/pixel) [0.02] | 579 | Image scale (in degrees/pixel) [0.02] |
| 581 | Size of the X axis in pixels [200] 10 | 580 | Size of the X axis in pixels [200] 10 |
| 582 | Size of the Y axis in pixels [200] 10 | 581 | Size of the Y axis in pixels [200] 10 |
| 583 | - Output Test Statistics map [tsmap.fits] | 582 | + Output Test Statistic map [tsmap.fits] |
| 584 | 583 | ||
| 585 | -:ref:`cttsmap` writes the Test Statistics map in the ``tsmap.fits`` file | ||
| 586 | -that contains one extension for the Test Statistics value and further | 584 | +:ref:`cttsmap` writes the Test Statistic map in the ``tsmap.fits`` file |
| 585 | +that contains one extension for the Test Statistic value and further | ||
| 587 | extensions for the spectral parameters that have been fitted for the | 586 | extensions for the spectral parameters that have been fitted for the |
| 588 | source at each position of the grid. | 587 | source at each position of the grid. |
| 589 | -The figure below show the Test Statistics map which reaches a maximum | 588 | +The figure below show the Test Statistic map which reaches a maximum |
| 590 | value of 13782 near the centre of the map. | 589 | value of 13782 near the centre of the map. |
| 591 | 590 | ||
| 592 | .. figure:: tsmap-crab.png | 591 | .. figure:: tsmap-crab.png |
| 593 | :width: 60% | 592 | :width: 60% |
| 594 | 593 | ||
| 595 | - *Test Statistics map of the Crab region* | 594 | + *Test Statistic map of the Crab region* |
| 596 | 595 | ||
| 597 | .. note:: | 596 | .. note:: |
| 598 | 597 | ||
| @@ -607,4 +606,21 @@ value of 13782 near the centre of the map. | @@ -607,4 +606,21 @@ value of 13782 near the centre of the map. | ||
| 607 | Generating a residual map | 606 | Generating a residual map |
| 608 | ~~~~~~~~~~~~~~~~~~~~~~~~~ | 607 | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 609 | 608 | ||
| 610 | -TBW | 609 | +.. code-block:: bash |
| 610 | + | ||
| 611 | + $ csresmap | ||
| 612 | + Parfile csresmap.par not found. Create default parfile. | ||
| 613 | + Event list, counts cube, or observation definition file [events.fits] obs.xml | ||
| 614 | + Calibration database [dummy] | ||
| 615 | + Instrument response function [cta_dummy_irf] | ||
| 616 | + Source model [$CTOOLS/share/models/crab.xml] crab_results.xml | ||
| 617 | + Output residual map [resmap.fits] | ||
| 618 | + First coordinate of image center in degrees (RA or galactic l) [83.63] | ||
| 619 | + Second coordinate of image center in degrees (DEC or galactic b) [22.01] | ||
| 620 | + Coordinate System (CEL|GAL) [CEL] | ||
| 621 | + Projection method e.g. AIT|AZP|CAR|MER|MOL|STG|TAN (AIT|AZP|CAR|MER|MOL|STG|TAN) [CAR] | ||
| 622 | + | ||
| 623 | +.. figure:: resmap-crab.png | ||
| 624 | + :width: 60% | ||
| 625 | + | ||
| 626 | + *Residual map of the Crab region* |
doc/source/user_manual/getting_started/resmap-crab.png
0 → 100644
131 KB