Commit 3f06f605ba0f4cd95f4ef6f89ce83a6dbb168c13

Authored by Jürgen Knödlseder
1 parent 02cfa05d

Fix some documentation bugs

doc/source/users/reference_manual/cstsdist.rst
@@ -15,7 +15,7 @@ sets. The Test Statistics is defined as twice the log-likelihood difference @@ -15,7 +15,7 @@ sets. The Test Statistics is defined as twice the log-likelihood difference
15 that is obtained when fitting simulated data with and without a given 15 that is obtained when fitting simulated data with and without a given
16 source model component. 16 source model component.
17 17
18 -:red:`cstsdist` will create an ASCII file in comma-separated value (CSV) format, 18 +:ref:`cstsdist` will create an ASCII file in comma-separated value (CSV) format,
19 containing one row per TS computation. The first row is a header row providing 19 containing one row per TS computation. The first row is a header row providing
20 the column names. The following rows give the TS value, the log-likelihood 20 the column names. The following rows give the TS value, the log-likelihood
21 values of the fit with or without the source, the number of observed and 21 values of the fit with or without the source, the number of observed and
doc/source/users/tutorials/1dc/first_fitting.rst
@@ -16,7 +16,7 @@ Fitting the model components to the counts cube @@ -16,7 +16,7 @@ Fitting the model components to the counts cube
16 scripts for result display that use the ``matplotlib`` Python module can be 16 scripts for result display that use the ``matplotlib`` Python module can be
17 found in the 17 found in the
18 ``$CTOOLS/share/examples/python`` 18 ``$CTOOLS/share/examples/python``
19 - folder (see :ref:`how to display results<1dc_howto_display>`). 19 + folder (see :ref:`how to display results<howto_display>`).
20 20
21 Now you are ready to fit the model to the counts cube and to determine its 21 Now you are ready to fit the model to the counts cube and to determine its
22 maximum likelihood parameters. 22 maximum likelihood parameters.
doc/source/users/tutorials/1dc/first_improving.rst
@@ -96,7 +96,7 @@ components for these additional sources in the @@ -96,7 +96,7 @@ components for these additional sources in the
96 :ref:`model definition file <glossary_moddef>` 96 :ref:`model definition file <glossary_moddef>`
97 in order to reduce the fit residuals. 97 in order to reduce the fit residuals.
98 An example for such an exercise is shown 98 An example for such an exercise is shown
99 -:ref:`here <1dc_howto_extent>`. 99 +:ref:`here <howto_extent>`.
100 100
101 .. figure:: first_skymap_residual_iem.png 101 .. figure:: first_skymap_residual_iem.png
102 :width: 400px 102 :width: 400px
doc/source/users/tutorials/1dc/first_stacked.rst
@@ -14,7 +14,7 @@ Stacking the data @@ -14,7 +14,7 @@ Stacking the data
14 since for many cases the effect of the energy dispersion is negligible, 14 since for many cases the effect of the energy dispersion is negligible,
15 and taking energy dispersion into account is computationally intensive. If 15 and taking energy dispersion into account is computationally intensive. If
16 you want to learn how to take the energy dispersion into account please 16 you want to learn how to take the energy dispersion into account please
17 - read :ref:`this section<1dc_howto_edisp>`. 17 + read :ref:`this section <howto_edisp>`.
18 18
19 To analyse the selected observations, we recommend to stack the events into 19 To analyse the selected observations, we recommend to stack the events into
20 a counts cube. You do this using the :ref:`ctbin` tool: 20 a counts cube. You do this using the :ref:`ctbin` tool:
@@ -70,13 +70,12 @@ the counts cube, which considerably reduces the number of User parameters @@ -70,13 +70,12 @@ the counts cube, which considerably reduces the number of User parameters
70 that are queried by the tool. 70 that are queried by the tool.
71 71
72 .. note:: 72 .. note::
73 -  
74 The binning of the exposure cube does not need to correspond to the binning 73 The binning of the exposure cube does not need to correspond to the binning
75 of the counts cube. In any case, exposure values will be determined by 74 of the counts cube. In any case, exposure values will be determined by
76 interpolation from the values stored in the exposure cube file. The same 75 interpolation from the values stored in the exposure cube file. The same
77 is true for the point spread function and background cubes that are 76 is true for the point spread function and background cubes that are
78 described below, or the energy dispersion cube that is described 77 described below, or the energy dispersion cube that is described
79 - :ref:`here<1dc_howto_edisp>`. 78 + :ref:`here <howto_edisp>`.
80 79
81 Next, :ref:`ctpsfcube` computes the weighted Point Spread Function of the 80 Next, :ref:`ctpsfcube` computes the weighted Point Spread Function of the
82 stacked counts cube. 81 stacked counts cube.
doc/source/users/tutorials/howto/comptel/howto_comptel_fitting.rst
@@ -185,7 +185,7 @@ fitted values, and where the statistical uncertainties were added using the @@ -185,7 +185,7 @@ fitted values, and where the statistical uncertainties were added using the
185 ``error`` attribute. To investigate how the fit went you should inspect the 185 ``error`` attribute. To investigate how the fit went you should inspect the
186 log file ``ctlike.log`` that was also created by :ref:`ctlike`: 186 log file ``ctlike.log`` that was also created by :ref:`ctlike`:
187 187
188 -.. code-block:: bash 188 +.. code-block:: none
189 189
190 2017-08-26T22:05:05: +=================================+ 190 2017-08-26T22:05:05: +=================================+
191 2017-08-26T22:05:05: | Maximum likelihood optimisation | 191 2017-08-26T22:05:05: | Maximum likelihood optimisation |
doc/source/users/tutorials/howto/fermi/howto_fermi_fitting.rst
@@ -90,7 +90,7 @@ fitted values, and where the statistical uncertainties were added using the @@ -90,7 +90,7 @@ fitted values, and where the statistical uncertainties were added using the
90 ``error`` attribute. To investigate how the fit went you should inspect the 90 ``error`` attribute. To investigate how the fit went you should inspect the
91 log file ``ctlike.log`` that was also created by :ref:`ctlike`: 91 log file ``ctlike.log`` that was also created by :ref:`ctlike`:
92 92
93 -.. code-block:: bash 93 +.. code-block:: none
94 94
95 2017-08-26T10:35:10: +=================================+ 95 2017-08-26T10:35:10: +=================================+
96 2017-08-26T10:35:10: | Maximum likelihood optimisation | 96 2017-08-26T10:35:10: | Maximum likelihood optimisation |
@@ -193,7 +193,7 @@ using the Fermi-LAT Science Tools. @@ -193,7 +193,7 @@ using the Fermi-LAT Science Tools.
193 when the tool is applied to the same test data. As you will see below, 193 when the tool is applied to the same test data. As you will see below,
194 the fitted model parameters are basically identical. 194 the fitted model parameters are basically identical.
195 195
196 - .. code-block:: bash 196 + .. code-block:: none
197 197
198 Extragalactic_diffuse: 198 Extragalactic_diffuse:
199 Normalization: 1 199 Normalization: 1
@@ -240,7 +240,7 @@ using the Fermi-LAT Science Tools. @@ -240,7 +240,7 @@ using the Fermi-LAT Science Tools.
240 240
241 This results in 241 This results in
242 242
243 - .. code-block:: bash 243 + .. code-block:: none
244 244
245 2017-08-26T13:05:12: === GModelSky === 245 2017-08-26T13:05:12: === GModelSky ===
246 2017-08-26T13:05:12: Name ......................: Vela 246 2017-08-26T13:05:12: Name ......................: Vela
doc/source/users/tutorials/howto/howto_display.rst
1 -.. _1dc_howto_display: 1 +.. _howto_display:
2 2
3 How to display the results? 3 How to display the results?
4 --------------------------- 4 ---------------------------
doc/source/users/tutorials/howto/howto_edisp.rst
1 -.. _1dc_howto_edisp: 1 +.. _howto_edisp:
2 2
3 How to take the energy dispersion into account? 3 How to take the energy dispersion into account?
4 ----------------------------------------------- 4 -----------------------------------------------
doc/source/users/tutorials/howto/howto_exclude.rst
1 -.. _1dc_howto_exclude: 1 +.. _howto_exclude:
2 2
3 How to exclude bins from a counts cube? 3 How to exclude bins from a counts cube?
4 --------------------------------------- 4 ---------------------------------------
doc/source/users/tutorials/howto/howto_extent.rst
1 -.. _1dc_howto_extent: 1 +.. _howto_extent:
2 2
3 How to determine the extension of a source? 3 How to determine the extension of a source?
4 ------------------------------------------- 4 -------------------------------------------
@@ -55,7 +55,7 @@ For illustration, an excerpt of the :ref:`ctlike` log file is shown below. @@ -55,7 +55,7 @@ For illustration, an excerpt of the :ref:`ctlike` log file is shown below.
55 The disk with of ``Src003`` has been fitted to 0.335 +/- 0.003 degrees. 55 The disk with of ``Src003`` has been fitted to 0.335 +/- 0.003 degrees.
56 The source is detected with a TS value of 5393.8. 56 The source is detected with a TS value of 5393.8.
57 57
58 -.. code-block:: bash 58 +.. code-block:: none
59 59
60 2017-08-25T19:37:47: === GModelSky === 60 2017-08-25T19:37:47: === GModelSky ===
61 2017-08-25T19:37:47: Name ......................: Src003 61 2017-08-25T19:37:47: Name ......................: Src003
@@ -121,7 +121,7 @@ of 5665.7 which is considerably larger than the TS value of 5393.8 that is found @@ -121,7 +121,7 @@ of 5665.7 which is considerably larger than the TS value of 5393.8 that is found
121 above for the radial disk model. 121 above for the radial disk model.
122 Below an excerpt of the :ref:`ctlike` log file: 122 Below an excerpt of the :ref:`ctlike` log file:
123 123
124 -.. code-block:: bash 124 +.. code-block:: none
125 125
126 2017-08-25T20:32:55: === GModelSky === 126 2017-08-25T20:32:55: === GModelSky ===
127 2017-08-25T20:32:55: Name ......................: Src003 127 2017-08-25T20:32:55: Name ......................: Src003
doc/source/users/tutorials/howto/howto_lightcurve.rst
1 -.. _1dc_howto_ligthcurve: 1 +.. _howto_ligthcurve:
2 2
3 How to generate a light curve? 3 How to generate a light curve?
4 ------------------------------ 4 ------------------------------
doc/source/users/tutorials/howto/howto_phasecurve.rst
1 -.. _1dc_howto_phasecurve: 1 +.. _howto_phasecurve:
2 2
3 How to generate a phase curve of a pulsar? 3 How to generate a phase curve of a pulsar?
4 ------------------------------------------ 4 ------------------------------------------
doc/source/users/tutorials/howto/howto_ts.rst
1 -.. _1dc_howto_ts: 1 +.. _howto_ts:
2 2
3 How to compute the signifiance of a source? 3 How to compute the signifiance of a source?
4 ------------------------------------------- 4 -------------------------------------------
doc/source/users/tutorials/howto/howto_tsmap.rst
1 -.. _1dc_howto_tsmap: 1 +.. _howto_tsmap:
2 2
3 How to generate a Test Statistic map? 3 How to generate a Test Statistic map?
4 ------------------------------------- 4 -------------------------------------
doc/source/users/tutorials/howto/howto_ulimit.rst
1 -.. _1dc_howto_ulimit: 1 +.. _howto_ulimit:
2 2
3 How to compute upper limits? 3 How to compute upper limits?
4 ---------------------------- 4 ----------------------------
doc/source/users/tutorials/howto/howto_vo.rst
1 -.. _1dc_howto_vo: 1 +.. _howto_vo:
2 2
3 How to use Virtual Observatory tools with ctools? 3 How to use Virtual Observatory tools with ctools?
4 ------------------------------------------------- 4 -------------------------------------------------
doc/source/users/tutorials/howto/index.rst
1 -.. _1dc_howto: 1 +.. _howto:
2 2
3 Analysis cookbook 3 Analysis cookbook
4 ================= 4 =================
doc/source/users/tutorials/quickstart/butterfly.rst
@@ -63,8 +63,8 @@ A graphical display of the results is shown below: @@ -63,8 +63,8 @@ A graphical display of the results is shown below:
63 Python module. You can find these scripts in the 63 Python module. You can find these scripts in the
64 ``$CTOOLS/share/examples/python`` folder. 64 ``$CTOOLS/share/examples/python`` folder.
65 65
66 - Read the section about :ref:`sec_plotting` to learn more about the  
67 - available scripts. The plot above was generated using: 66 + Read :ref:`howto_display` to learn more about the available scripts. The
  67 + plot above was generated using:
68 68
69 .. code-block:: bash 69 .. code-block:: bash
70 70
doc/source/users/tutorials/quickstart/onoff.rst
@@ -127,7 +127,7 @@ the On region and the Off regions, ``onoff_on.reg`` and @@ -127,7 +127,7 @@ the On region and the Off regions, ``onoff_on.reg`` and
127 a skymap where you can see the pointing direction along with the position of 127 a skymap where you can see the pointing direction along with the position of
128 the On and Off regions. 128 the On and Off regions.
129 129
130 -.. figure:: onoff.png 130 +.. figure:: onoff.jpg
131 :width: 400px 131 :width: 400px
132 :align: center 132 :align: center
133 133
doc/source/users/tutorials/quickstart/residual_map.rst
@@ -38,7 +38,7 @@ the residual counts map. The image is displayed below using @@ -38,7 +38,7 @@ the residual counts map. The image is displayed below using
38 kernel smoothing applied. Obviously, there are no significant residuals, which 38 kernel smoothing applied. Obviously, there are no significant residuals, which
39 indicates that the model fit was satisfactory. 39 indicates that the model fit was satisfactory.
40 40
41 -.. figure:: residuals.jpg 41 +.. figure:: residual_map.jpg
42 :width: 400px 42 :width: 400px
43 :align: center 43 :align: center
44 44
doc/source/users/user_manual/introduction.rst
@@ -43,7 +43,7 @@ the ctool or cscript followed by the ``--help`` option: @@ -43,7 +43,7 @@ the ctool or cscript followed by the ``--help`` option:
43 ctools includes also a Python module that declares every ctool as a 43 ctools includes also a Python module that declares every ctool as a
44 Python class. The following example illustrates the usage: 44 Python class. The following example illustrates the usage:
45 45
46 -.. code-block:: python 46 +.. code-block:: bash
47 47
48 $ python 48 $ python
49 >>> import ctools 49 >>> import ctools
@@ -57,7 +57,7 @@ ctools comprise also cscripts, which are Python scripts that have the same @@ -57,7 +57,7 @@ ctools comprise also cscripts, which are Python scripts that have the same
57 user interface as the ctools binaries. cscripts can be started from the 57 user interface as the ctools binaries. cscripts can be started from the
58 command line or used as Python classes, as illustrated below: 58 command line or used as Python classes, as illustrated below:
59 59
60 -.. code-block:: python 60 +.. code-block:: bash
61 61
62 $ python 62 $ python
63 >>> import cscripts 63 >>> import cscripts
doc/source/users/user_manual/models_spatial_src.rst
@@ -281,7 +281,7 @@ Diffuse source @@ -281,7 +281,7 @@ Diffuse source
281 ``Normalization`` can be replaced by ``Prefactor``. 281 ``Normalization`` can be replaced by ``Prefactor``.
282 282
283 .. note:: 283 .. note::
284 - You may add the ``normalize="0"``to the spatial model tag to avoid the 284 + You may add the ``normalize="0"`` to the spatial model tag to avoid the
285 normalization of the diffuse map to an integral of unity 285 normalization of the diffuse map to an integral of unity
286 286
287 .. code-block:: xml 287 .. code-block:: xml