Commit 624999d94fbd802922840fffca2802cba886f62a
1 parent
7bad2878
Add helpful tips to User documentation
Showing
2 changed files
with
85 additions
and
0 deletions
doc/source/users/index.rst
doc/source/users/tips/index.rst
0 → 100644
| 1 | +.. _sec_tips: | ||
| 2 | + | ||
| 3 | +Helpful tips | ||
| 4 | +============ | ||
| 5 | + | ||
| 6 | +This page summarises things that you **definitely should consider** when using | ||
| 7 | +the ctools software. Make sure that you read at least this section. | ||
| 8 | + | ||
| 9 | +- :ref:`Always inspect your fit residuals <tip_residuals>` | ||
| 10 | +- :ref:`Make sure your binning is sufficiently fine grained <tip_binned>` | ||
| 11 | +- :ref:`Only use energy dispersion when you really need it <tip_edisp>` | ||
| 12 | +- :ref:`Only compute the Test Statistics when you really need it <tip_ts>` | ||
| 13 | +- :ref:`Fit extended source with a radial disk model <tip_disk>` | ||
| 14 | +- :ref:`Fix the spectral parameters of a source to compute an upper limit <tip_ulimit>` | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + | ||
| 18 | +.. _tip_residuals: | ||
| 19 | + | ||
| 20 | +.. topic:: Always inspect your fit residuals | ||
| 21 | + | ||
| 22 | + **Never** trust the values of a :ref:`ctlike` model fit without having | ||
| 23 | + inspected the fit residuals. Residuals in the region of your source of | ||
| 24 | + interest should be flat. | ||
| 25 | + | ||
| 26 | + | ||
| 27 | +.. _tip_binned: | ||
| 28 | + | ||
| 29 | +.. topic:: Make sure your binning is sufficiently fine grained | ||
| 30 | + | ||
| 31 | + If you use binned analysis, make sure that the bin size is sufficiently fine | ||
| 32 | + grained, since the model is sampled at the bin centres. A spatial binning of | ||
| 33 | + 0.02 degrees should be okay. Use at least 10 bins per decade for the energy | ||
| 34 | + binning, you may consider using more bins below 100 GeV when you analyse | ||
| 35 | + data near the energy threshold. | ||
| 36 | + | ||
| 37 | + | ||
| 38 | +.. _tip_edisp: | ||
| 39 | + | ||
| 40 | +.. topic:: Only use energy dispersion when you really need it | ||
| 41 | + | ||
| 42 | + You should only use the energy dispersion when you are sure that it | ||
| 43 | + impacts significantly the analysis results, or when you want to produce | ||
| 44 | + final results for a publication. Taking into account energy dispersion | ||
| 45 | + adds a further dimension to the analysis which considerably slows down the | ||
| 46 | + computations. In many cases the impact of the energy dispersion is small | ||
| 47 | + and can in a first order be neglected. | ||
| 48 | + | ||
| 49 | + | ||
| 50 | +.. _tip_ts: | ||
| 51 | + | ||
| 52 | +.. topic:: Only compute the Test Statistics when you really need it | ||
| 53 | + | ||
| 54 | + The Test Statistic value is useful for computing the detection significance | ||
| 55 | + of a source, but for many sources in your region of interest you may actually | ||
| 56 | + not be interested in that value. Computation of the Test Statistic value | ||
| 57 | + takes some extra time, so do not request the computation if you don't reaaly | ||
| 58 | + need it. | ||
| 59 | + | ||
| 60 | + | ||
| 61 | +.. _tip_disk: | ||
| 62 | + | ||
| 63 | +.. topic:: Fit extended sources with a radial disk model | ||
| 64 | + | ||
| 65 | + The fit of extended sources is best done with a radial disk model since the | ||
| 66 | + computations for this model are very fast (model type: ``RadialDisk``). Only | ||
| 67 | + if the radial disk model is a bad representation of the spatial distribution | ||
| 68 | + or to compute final values for a publication you should switch to other | ||
| 69 | + extended models, such as the ``RadialGaussian`` or ``RadialShell`` models. | ||
| 70 | + Note that the computations for elliptical models are even slower, | ||
| 71 | + hence use these models only when you really need them, and prefer the | ||
| 72 | + elliptical disk over the elliptical Gaussian model. | ||
| 73 | + | ||
| 74 | + | ||
| 75 | +.. _tip_ulimit: | ||
| 76 | + | ||
| 77 | +.. topic:: Fix the spectral parameters of a source to compute an upper limit | ||
| 78 | + | ||
| 79 | + When computing an upper limit using :ref:`ctulimit`, make sure that the | ||
| 80 | + spectral parameters such as index, cutoff energy, etc. are all fixed. Only | ||
| 81 | + the prefactor or integrated flux should be left free. Computation of an | ||
| 82 | + upper limit requires to make a hypothesis on the underlying spectral energy | ||
| 83 | + density distribution, hence you have to fix the parameters of this | ||
| 84 | + hypothesis. Otherwise your upper limits are probably rather meaningless. |