Commit 3f06f605ba0f4cd95f4ef6f89ce83a6dbb168c13
1 parent
02cfa05d
Fix some documentation bugs
Showing
22 changed files
with
29 additions
and
30 deletions
doc/source/users/reference_manual/cstsdist.rst
| ... | ... | @@ -15,7 +15,7 @@ sets. The Test Statistics is defined as twice the log-likelihood difference |
| 15 | 15 | that is obtained when fitting simulated data with and without a given |
| 16 | 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 | 19 | containing one row per TS computation. The first row is a header row providing |
| 20 | 20 | the column names. The following rows give the TS value, the log-likelihood |
| 21 | 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 | 16 | scripts for result display that use the ``matplotlib`` Python module can be |
| 17 | 17 | found in the |
| 18 | 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 | 21 | Now you are ready to fit the model to the counts cube and to determine its |
| 22 | 22 | maximum likelihood parameters. | ... | ... |
doc/source/users/tutorials/1dc/first_improving.rst
| ... | ... | @@ -96,7 +96,7 @@ components for these additional sources in the |
| 96 | 96 | :ref:`model definition file <glossary_moddef>` |
| 97 | 97 | in order to reduce the fit residuals. |
| 98 | 98 | An example for such an exercise is shown |
| 99 | -:ref:`here <1dc_howto_extent>`. | |
| 99 | +:ref:`here <howto_extent>`. | |
| 100 | 100 | |
| 101 | 101 | .. figure:: first_skymap_residual_iem.png |
| 102 | 102 | :width: 400px | ... | ... |
doc/source/users/tutorials/1dc/first_stacked.rst
| ... | ... | @@ -14,7 +14,7 @@ Stacking the data |
| 14 | 14 | since for many cases the effect of the energy dispersion is negligible, |
| 15 | 15 | and taking energy dispersion into account is computationally intensive. If |
| 16 | 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 | 19 | To analyse the selected observations, we recommend to stack the events into |
| 20 | 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 | 70 | that are queried by the tool. |
| 71 | 71 | |
| 72 | 72 | .. note:: |
| 73 | - | |
| 74 | 73 | The binning of the exposure cube does not need to correspond to the binning |
| 75 | 74 | of the counts cube. In any case, exposure values will be determined by |
| 76 | 75 | interpolation from the values stored in the exposure cube file. The same |
| 77 | 76 | is true for the point spread function and background cubes that are |
| 78 | 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 | 80 | Next, :ref:`ctpsfcube` computes the weighted Point Spread Function of the |
| 82 | 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 | 185 | ``error`` attribute. To investigate how the fit went you should inspect the |
| 186 | 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 | 190 | 2017-08-26T22:05:05: +=================================+ |
| 191 | 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 | 90 | ``error`` attribute. To investigate how the fit went you should inspect the |
| 91 | 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 | 95 | 2017-08-26T10:35:10: +=================================+ |
| 96 | 96 | 2017-08-26T10:35:10: | Maximum likelihood optimisation | |
| ... | ... | @@ -193,7 +193,7 @@ using the Fermi-LAT Science Tools. |
| 193 | 193 | when the tool is applied to the same test data. As you will see below, |
| 194 | 194 | the fitted model parameters are basically identical. |
| 195 | 195 | |
| 196 | - .. code-block:: bash | |
| 196 | + .. code-block:: none | |
| 197 | 197 | |
| 198 | 198 | Extragalactic_diffuse: |
| 199 | 199 | Normalization: 1 |
| ... | ... | @@ -240,7 +240,7 @@ using the Fermi-LAT Science Tools. |
| 240 | 240 | |
| 241 | 241 | This results in |
| 242 | 242 | |
| 243 | - .. code-block:: bash | |
| 243 | + .. code-block:: none | |
| 244 | 244 | |
| 245 | 245 | 2017-08-26T13:05:12: === GModelSky === |
| 246 | 246 | 2017-08-26T13:05:12: Name ......................: Vela | ... | ... |
doc/source/users/tutorials/howto/howto_display.rst
doc/source/users/tutorials/howto/howto_edisp.rst
doc/source/users/tutorials/howto/howto_exclude.rst
doc/source/users/tutorials/howto/howto_extent.rst
| 1 | -.. _1dc_howto_extent: | |
| 1 | +.. _howto_extent: | |
| 2 | 2 | |
| 3 | 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 | 55 | The disk with of ``Src003`` has been fitted to 0.335 +/- 0.003 degrees. |
| 56 | 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 | 60 | 2017-08-25T19:37:47: === GModelSky === |
| 61 | 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 | 121 | above for the radial disk model. |
| 122 | 122 | Below an excerpt of the :ref:`ctlike` log file: |
| 123 | 123 | |
| 124 | -.. code-block:: bash | |
| 124 | +.. code-block:: none | |
| 125 | 125 | |
| 126 | 126 | 2017-08-25T20:32:55: === GModelSky === |
| 127 | 127 | 2017-08-25T20:32:55: Name ......................: Src003 | ... | ... |
doc/source/users/tutorials/howto/howto_lightcurve.rst
doc/source/users/tutorials/howto/howto_phasecurve.rst
doc/source/users/tutorials/howto/howto_ts.rst
doc/source/users/tutorials/howto/howto_tsmap.rst
doc/source/users/tutorials/howto/howto_ulimit.rst
doc/source/users/tutorials/howto/howto_vo.rst
doc/source/users/tutorials/howto/index.rst
doc/source/users/tutorials/quickstart/butterfly.rst
| ... | ... | @@ -63,8 +63,8 @@ A graphical display of the results is shown below: |
| 63 | 63 | Python module. You can find these scripts in the |
| 64 | 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 | 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 | 127 | a skymap where you can see the pointing direction along with the position of |
| 128 | 128 | the On and Off regions. |
| 129 | 129 | |
| 130 | -.. figure:: onoff.png | |
| 130 | +.. figure:: onoff.jpg | |
| 131 | 131 | :width: 400px |
| 132 | 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 | 38 | kernel smoothing applied. Obviously, there are no significant residuals, which |
| 39 | 39 | indicates that the model fit was satisfactory. |
| 40 | 40 | |
| 41 | -.. figure:: residuals.jpg | |
| 41 | +.. figure:: residual_map.jpg | |
| 42 | 42 | :width: 400px |
| 43 | 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 | 43 | ctools includes also a Python module that declares every ctool as a |
| 44 | 44 | Python class. The following example illustrates the usage: |
| 45 | 45 | |
| 46 | -.. code-block:: python | |
| 46 | +.. code-block:: bash | |
| 47 | 47 | |
| 48 | 48 | $ python |
| 49 | 49 | >>> import ctools |
| ... | ... | @@ -57,7 +57,7 @@ ctools comprise also cscripts, which are Python scripts that have the same |
| 57 | 57 | user interface as the ctools binaries. cscripts can be started from the |
| 58 | 58 | command line or used as Python classes, as illustrated below: |
| 59 | 59 | |
| 60 | -.. code-block:: python | |
| 60 | +.. code-block:: bash | |
| 61 | 61 | |
| 62 | 62 | $ python |
| 63 | 63 | >>> import cscripts | ... | ... |
doc/source/users/user_manual/models_spatial_src.rst
| ... | ... | @@ -281,7 +281,7 @@ Diffuse source |
| 281 | 281 | ``Normalization`` can be replaced by ``Prefactor``. |
| 282 | 282 | |
| 283 | 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 | 285 | normalization of the diffuse map to an integral of unity |
| 286 | 286 | |
| 287 | 287 | .. code-block:: xml | ... | ... |