Commit 134aff59796bd4f13124323f3aa8c410c00a3220

Authored by Michael Mayer
1 parent 27649b93

Added cstsmapsplit to documentation in tips and tricks section

doc/source/users/user_manual/iact_analysis/tips.rst
... ... @@ -292,6 +292,35 @@ Each command could run on a different machine.
292 292 The output file name of individual jobs should be different. Otherwise files could overwrite each other. The naming of the individual slices
293 293 is up to the user.
294 294  
  295 +There is a tool :ref:`cstsmapsplit` that will take of this bookkeeping. It creates an ASCII file containing all the commands
  296 +according to the user input. The following example will create split the computation of a TS map into 2000 separate task.
  297 +Each task will only compute 5 bins on its own. This is very useful if the observation container is large or the fit simply
  298 +takes a long time.
  299 +
  300 +.. code-block:: bash
  301 +
  302 + $ cstsmapsplit
  303 + Input event list, counts cube or observation definition XML file [selected_obs.xml]
  304 + Input model definition XML file [$CTOOLS/share/models/crab.xml]
  305 + First coordinate of image center in degrees (RA or galactic l) (0-360) [83.63]
  306 + Second coordinate of image center in degrees (DEC or galactic b) (-90-90) [22.01]
  307 + Projection method (AIT|AZP|CAR|MER|MOL|STG|TAN) [CAR]
  308 + Coordinate system (CEL - celestial, GAL - galactic) (CEL|GAL) [CEL]
  309 + Image scale (in degrees/pixel) [0.02]
  310 + Size of the X axis in pixels [100]
  311 + Size of the Y axis in pixels [100]
  312 + Test source name [Crab]
  313 + Output Test Statistic map file [tsmap.fits]
  314 + Number of TS map bins per task [5]
  315 + Compute null hypothesis first? [yes]
  316 + ASCII file containing all commands [commands.dat]
  317 +
  318 +.. note::
  319 +
  320 + One can decide if we want to compute the null hypothesis first. This way, a parameter optimisation will be performed without
  321 + the test source. The obtained likelihood value will then be passed to each individual task of :ref:`cttsmap`.
  322 + If ``compute_null=no``, each task has to compute the null hypothesis itself.
  323 +
295 324 Merge sliced TS maps
296 325 ^^^^^^^^^^^^^^^^^^^^
297 326 The tool :ref:`cstsmapmerge` is intended to take care of merging the files that were produced while splitting the TS map computation.
... ...