Commit 1480f3703cb527beb03c245c2f3e9a0891db972f
1 parent
27ab7347
parameters and par file
Showing
3 changed files
with
51 additions
and
11 deletions
doc/source/users/reference_manual/index.rst
| ... | ... | @@ -4,10 +4,12 @@ Reference Manual |
| 4 | 4 | ================ |
| 5 | 5 | |
| 6 | 6 | This manual provides reference information for all ctools and csripts. |
| 7 | -General information on ctools usage can be found `here <usage.html>`__. | |
| 7 | +General information on ctools usage can be found `here | |
| 8 | +<../user_manual/introduction.html>`_. The description of user parameters in the reference | |
| 9 | +manual is documented `here <usage.html>`__. | |
| 8 | 10 | |
| 9 | -Below you find links to the command line reference for the tools and scripts | |
| 10 | -that are available. | |
| 11 | + | |
| 12 | +Below you find links to the command line reference for all available tools and scripts. | |
| 11 | 13 | |
| 12 | 14 | ctools |
| 13 | 15 | ------ | ... | ... |
doc/source/users/reference_manual/usage.rst
| 1 | -Basic ctools parameter usage | |
| 2 | -============================ | |
| 1 | +Description of ctools parameters in the reference manual | |
| 2 | +===================================== | |
| 3 | + | |
| 4 | +For a generic introduction to ctools and user parameters see `here <../user_manual/introduction.html>`__. | |
| 3 | 5 | |
| 4 | 6 | Automatic parameters |
| 5 | 7 | -------------------- |
| ... | ... | @@ -36,7 +38,7 @@ Examples |
| 36 | 38 | |
| 37 | 39 | .. note:: |
| 38 | 40 | |
| 39 | - To set hidden parameters at runtime, specify them explicitly at | |
| 41 | + You can set hidden parameters at runtime by specifying them explicitly on | |
| 40 | 42 | the command line; for example: |
| 41 | 43 | |
| 42 | 44 | ``ctobssim start_time=900`` | ... | ... |
doc/source/users/user_manual/introduction.rst
| ... | ... | @@ -5,7 +5,17 @@ Introduction |
| 5 | 5 | |
| 6 | 6 | ctools is a software package developed for the scientific analysis of |
| 7 | 7 | Cherenkov Telescope Array (CTA) data or any other Imaging Air Cherenkov |
| 8 | -Telescope. ctools comprises a set of ftools-like binary executables, | |
| 8 | +Telescope. | |
| 9 | + | |
| 10 | +In this User Manual you will now learn how to use the ctools package. | |
| 11 | +If you encounter any problems, please read the :ref:`sec_help` section. | |
| 12 | +And you should read the :ref:`sec_develop` section if you would like to | |
| 13 | +contribute to the ctools developments. | |
| 14 | + | |
| 15 | +Running ctools | |
| 16 | +--------------- | |
| 17 | + | |
| 18 | +ctools comprises a set of ftools-like binary executables, | |
| 9 | 19 | written in C++, with a command-line interface allowing for interactive |
| 10 | 20 | step-wise data analysis. To start a ctool from the command line, simply |
| 11 | 21 | type the name of the ctool: |
| ... | ... | @@ -53,7 +63,33 @@ command line or used as Python classes, as illustrated below: |
| 53 | 63 | >>> import cscripts |
| 54 | 64 | >>> pull = cscripts.cspull() |
| 55 | 65 | |
| 56 | -In this User Manual you will now learn how to use the ctools package. | |
| 57 | -If you encounter any problems, please read the :ref:`sec_help` section. | |
| 58 | -And you should read the :ref:`sec_develop` section if you would like to | |
| 59 | -contribute to the ctools developments. | |
| 66 | +User parameters and parameter files | |
| 67 | +----------------------------- | |
| 68 | + | |
| 69 | +Each ctool and cscript has a defined list of user parameters. You can | |
| 70 | +find a complete description `here | |
| 71 | +<../reference_manual/reference.html>`_. | |
| 72 | + | |
| 73 | +User parameters are stored in | |
| 74 | +par files. A ctools installation comprises a set of default par files | |
| 75 | +stored at ``$CTOOLS/syspfiles``. When you run a tool/script the latest | |
| 76 | +parameter values will be stored in a copy of the file at | |
| 77 | +``$HOME/pfiles`` (e.g., ``ctlike`` will save there a file called ``ctlike.par`` ). | |
| 78 | + | |
| 79 | +When a tool/script is executed again, it will look for a par file | |
| 80 | +first in ``$HOME/pfiles``, and propose you to use the latest values | |
| 81 | +stored there. If no par file is found there, it will use the default | |
| 82 | +in ``$CTOOLS/syspfiles``. | |
| 83 | + | |
| 84 | +If you update your ctools installation you may get an error such as | |
| 85 | + | |
| 86 | +.. code-block:: bash | |
| 87 | + | |
| 88 | + *** ERROR encounterted in the execution of ctlike. Run aborted ... | |
| 89 | + *** ERROR in GApplicationPars::load(GFilename&, | |
| 90 | + std::vector<std::string>&): Invalid command line parameter | |
| 91 | + encountered (invalid parameter name "XX"): XX=2 | |
| 92 | + | |
| 93 | +Remove the stale file ``ctlike.par`` from ``$HOME/pfiles`` and run | |
| 94 | +again to solve the issue. | |
| 95 | + | ... | ... |