Commit 827a8ffd5ca3b949215d123b40e33d62e338d5e5

Authored by Jürgen Knödlseder
1 parent 50a86942

Update reference manual documentation.

doc/source/reference_manual/ctbutterfly.rst
... ... @@ -46,7 +46,7 @@ General parameters
46 46 Input model XML file.
47 47  
48 48 ``srcname [string]``
49   - Name of model component for which butterfly should be computed.
  49 + Name of source model for which the butterfly diagram should be computed.
50 50  
51 51 ``expcube [file]``
52 52 Input exposure cube file (only needed for stacked analysis).
... ...
doc/source/reference_manual/ctcubemask.rst
... ... @@ -3,14 +3,32 @@
3 3 ctcubemask
4 4 ==========
5 5  
6   -Filter a counts cube.
  6 +Mask out bins of a counts cube.
7 7  
8 8  
9 9 Synopsis
10 10 --------
11 11  
12 12 This tool masks out specific regions from a counts cube by setting the
13   -corresponding pixels to negative values.
  13 +corresponding bin values to -1. Bins with negative values will be ignored
  14 +in a maximum likelihood analysis. A mask is applied spatially and spectrally.
  15 +
  16 +ctcubemask applies a spatial mask that is comprised of a circular selection
  17 +region and a list of circular exclusion regions. The circular selection region
  18 +is specified by the sky direction of the centre and the radius of the circle.
  19 +The circular exclusion regions are specified by an ASCII file in ds9 format.
  20 +The ASCII file contains one row per exclusion region, given in the format
  21 +
  22 +``circle(83.63, 21.5, 0.4)``
  23 +
  24 +where ``83.63`` and ``21.5`` are the Right Ascension and Declination of
  25 +the centre and ``0.4`` is the radius (in degrees) of the exclusion circle.
  26 +
  27 +ctcubemask also selects only counts cube energy layers that are fully comprised
  28 +in the energy interval specified by the ``emin`` and ``emax`` parameters.
  29 +
  30 +ctcubemask generates a counts cube FITS file that is a copy of the input
  31 +counts cube and for which all masked bins have been set to -1.
14 32  
15 33  
16 34 General parameters
... ... @@ -19,9 +37,6 @@ General parameters
19 37 ``inobs [file]``
20 38 Input counts cube or observation definition XML file.
21 39  
22   -``regfile [file]``
23   - Exclusion region file in ds9 format.
24   -
25 40 ``outcube [file]``
26 41 Output counts cube or observation definition XML file.
27 42  
... ... @@ -41,6 +56,9 @@ General parameters
41 56 ``rad [real]``
42 57 Radius of circular selection region (in degrees).
43 58  
  59 +``regfile [file]``
  60 + Input exclusion region file in ds9 format.
  61 +
44 62 ``emin [real]``
45 63 Lower energy limit (in TeV).
46 64  
... ... @@ -72,11 +90,11 @@ Standard parameters
72 90 ``(mode = ql) [string]``
73 91 Mode of automatic parameters (default is "ql", i.e. "query and learn").
74 92  
75   -``(logfile = ctexpcube.log) [string]``
  93 +``(logfile = ctcubemask.log) [string]``
76 94 Name of log file.
77 95  
78 96  
79 97 Related tools
80 98 -------------
81 99  
82   -None
  100 +:doc:`ctbin`
... ...
doc/source/reference_manual/cterror.rst
... ... @@ -3,15 +3,26 @@
3 3 cterror
4 4 =======
5 5  
6   -Computes parameter errors for a specific sky model component using
7   -a likelihood profile method.
  6 +Computes parameter errors for a source model from the likelihood profiles.
8 7  
9 8  
10 9 Synopsis
11 10 --------
12 11  
13   -This tool computes the parameter errors for a specific sky model using
14   -a likelihood profile method.
  12 +This tool computes the parameter errors for a specific source model using
  13 +the likelihood profiles. Starting from the maximum likelihood model parameters,
  14 +the tool finds the minimum and maximum model parameters that lead to a decrease
  15 +of the likelihood that corresponds to a given confidence level. By default a
  16 +confidence level of 68% is used, but this level can be adjusted using the hidden
  17 +``confidence`` parameter.
  18 +
  19 +cterror generates an output model XML file that contains the values of the
  20 +best fitting model parameters. For all free parameters, an ``error`` attribute
  21 +is added that provides the statistical uncertainty in the parameter estimate
  22 +as obtained from the likelihood profile. While cterror computes asymmetrical
  23 +errors, which are written into the log file, the XML file will contain the
  24 +mean error that is obtained by computing the mean of the negative and the
  25 +positive parameter errors.
15 26  
16 27  
17 28 General parameters
... ... @@ -24,7 +35,7 @@ General parameters
24 35 Input model XML file.
25 36  
26 37 ``srcname [string]``
27   - Name of model component for which upper limit should be computed.
  38 + Name of source model for which the parameter errors should be computed.
28 39  
29 40 ``expcube [file]``
30 41 Input exposure cube file (only needed for stacked analysis).
... ... @@ -89,5 +100,6 @@ Standard parameters
89 100 Related tools
90 101 -------------
91 102  
  103 +:ref:`ctlike`
92 104 :ref:`ctulimit`
93 105 :ref:`ctbutterfly`
... ...
doc/source/reference_manual/cttsmap.rst
... ... @@ -3,13 +3,25 @@
3 3 cttsmap
4 4 =======
5 5  
6   -Generate a Test Statistic map.
  6 +Generate a Test Statistic (TS) map.
7 7  
8 8  
9 9 Synopsis
10 10 --------
11 11  
12   -This tool generates a Test Statistic map.
  12 +This tool generates a Test Statistic (TS) map for a specific source model.
  13 +cttsmap works for point, radial and elliptical source models. The tool
  14 +displaces the specified source on a grid of sky directions and computes for
  15 +each direction the TS value for the model. The TS value is defined as twice
  16 +the difference between the log-likelihood obtained for the full model
  17 +(including the specified source) and the log-likelihood obtained for a model
  18 +that excludes the specified source. The square-root of the TS values
  19 +corresponds roughly to the pre-trial detection signifiance of the source (in
  20 +Gaussian sigma).
  21 +
  22 +cttsmap generates a FITS file comprising a sky map of TS values followed by
  23 +one extension per free parameter that contains sky maps of the fitted
  24 +parameter values.
13 25  
14 26  
15 27 General parameters
... ... @@ -19,11 +31,10 @@ General parameters
19 31 Input event list, counts cube or observation definition XML file.
20 32  
21 33 ``inmodel [file]``
22   - Input source model XML file.
  34 + Input model XML file.
23 35  
24 36 ``srcname [string]``
25   - Name of the source in the source model XML file for which the Test
26   - Statistic map should be computed.
  37 + Name of source model for which the TS map should be computed.
27 38  
28 39 ``expcube [file]``
29 40 Input exposure cube file (only needed for stacked analysis).
... ... @@ -38,7 +49,7 @@ General parameters
38 49 Calibration database.
39 50  
40 51 ``irf [string]``
41   - Response function.
  52 + Instrumental response function.
42 53  
43 54 ``(edisp = no) [boolean]``
44 55 Applies energy dispersion to response computation.
... ...
doc/source/reference_manual/ctulimit.rst
... ... @@ -13,7 +13,7 @@ This tools computes the upper flux limit for a specific source model. Except
13 13 of the node function, all spectral models are supported. Starting from the
14 14 maximum likelihood model parameters, the tool finds the model flux that leads
15 15 to a decrease of the likelihood that corresponds to a given confidence level.
16   -By default a confidence level of 95% is used, but the level can be adjusted
  16 +By default a confidence level of 95% is used, but this level can be adjusted
17 17 using the hidden ``confidence`` parameter.
18 18  
19 19 ctulimit writes the differential upper flux limit at a given reference
... ... @@ -33,7 +33,7 @@ General parameters
33 33 Input model XML file.
34 34  
35 35 ``srcname [string]``
36   - Name of model component for which upper limit should be computed.
  36 + Name of source model for which the upper flux limit should be computed.
37 37  
38 38 ``expcube [file]``
39 39 Input exposure cube file (only needed for stacked analysis).
... ... @@ -113,4 +113,5 @@ Related tools
113 113 -------------
114 114  
115 115 :ref:`ctlike`
116   -:ref:`cterror`
117 116 \ No newline at end of file
  117 +:ref:`cterror`
  118 +:ref:`ctbutterfly`
... ...
src/ctcubemask/ctcubemask.cpp
... ... @@ -384,7 +384,7 @@ void ctcubemask::get_parameters(void)
384 384 }
385 385 }
386 386  
387   - // Check if radius is vaild for a RoI selection
  387 + // Check if radius is valid for a RoI selection
388 388 if (m_select_roi && (*this)["rad"].is_valid()) {
389 389 m_rad = (*this)["rad"].real();
390 390 }
... ...
src/ctcubemask/ctcubemask.par
... ... @@ -18,19 +18,19 @@
18 18 # General parameters
19 19 #===================
20 20 inobs, f, a, "cntmap.fits",,, "Input counts cube or observation definition XML file"
21   -regfile, f, a, "NONE",,, "Exclusion region file in ds9 format"
22 21 outcube, f, a, "filtered_cube.fits",,, "Output counts cube or observation definition XML file"
23 22 prefix, s, h, "filtered_",,, "Prefix for counts cube in observation definition XML file"
24 23  
25 24 #
26 25 # Selection parameters
27 26 #=====================
28   -usepnt, b, h, no,,, "Use pointing instead of RA/DEC parameters?"
29   -ra, r, a, 83.63,0,360, "RA for ROI centre (degrees)"
30   -dec, r, a, 22.01,-90,90, "Dec for ROI centre (degrees)"
31   -rad, r, a, 3.0,0,180, "Radius of ROI (degrees)"
32   -emin, r, a, 0.1,,, "Lower energy limit (TeV)"
33   -emax, r, a, 100.0,,, "Upper energy limit (TeV)"
  27 +usepnt, b, h, no,,, "Use pointing instead of RA/DEC parameters?"
  28 +ra, r, a, 83.63,0,360, "RA for ROI centre (degrees)"
  29 +dec, r, a, 22.01,-90,90, "Dec for ROI centre (degrees)"
  30 +rad, r, a, 3.0,0,180, "Radius of ROI (degrees)"
  31 +regfile, f, a, "NONE",,, "Input exclusion region file in ds9 format"
  32 +emin, r, a, 0.1,,, "Lower energy limit (TeV)"
  33 +emax, r, a, 100.0,,, "Upper energy limit (TeV)"
34 34  
35 35 #
36 36 # Standard parameters
... ...