Commit 44f4866602e92a958f9e92372f5c661279a2f68d
1 parent
f7488973
Finished high level analysis tools section
Showing
1 changed file
with
101 additions
and
7 deletions
doc/source/user_manual/iact_analysis/high_level.rst
| ... | ... | @@ -3,10 +3,16 @@ |
| 3 | 3 | High level analysis tools for IACT data |
| 4 | 4 | ======================================= |
| 5 | 5 | |
| 6 | -* :ref:`csspec` - calculate spectral points | |
| 7 | -* :ref:`cslightcrv` - calculate a light curve | |
| 8 | -* :ref:`csresmap` - compute a residual map | |
| 9 | -* :ref:`cttsmap` - compute a TS map (and flux map) | |
| 6 | +This section describes and explains how to create high level output. The following tools are explained: | |
| 7 | + | |
| 8 | +* :ref:`csobsinfo` (inspect and observation XML files) | |
| 9 | +* :ref:`csmodelinfo` (inspect model XML files) | |
| 10 | +* :ref:`ctulimit` (compute upper limits) | |
| 11 | +* :ref:`cterror` (compute asymmetric errors) | |
| 12 | +* :ref:`csspec` (compute spectral points) | |
| 13 | +* :ref:`cslightcrv` (compute a light curve) | |
| 14 | +* :ref:`csresmap` (compute a residual map) | |
| 15 | +* :ref:`cttsmap` (compute a test statistics map) | |
| 10 | 16 | |
| 11 | 17 | Inspecting observation definition files |
| 12 | 18 | --------------------------------------- |
| ... | ... | @@ -198,15 +204,103 @@ and model should be compared. There are three options: |
| 198 | 204 | * ``SUBDIV``: the subtraction and division by the model. The resulting map will display relative differences of the data with respect to the model. |
| 199 | 205 | * ``SUBDIVSQRT``: the subtraction and division by the square root of the model. The resulting map will display an approximation of a residual significance map. In case of sufficient count statistic per bin, the bin value represents the significance. |
| 200 | 206 | |
| 207 | +Example unbinned observation container | |
| 208 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 209 | + | |
| 210 | +.. code-block:: bash | |
| 211 | + | |
| 212 | + $ csresmap | |
| 213 | + Input event list, counts cube, or observation definition XML file [selected_obs.xml] | |
| 214 | + Input model XML file [crab_results.xml] | |
| 215 | + First coordinate of image center in degrees (RA or galactic l) (0-360) [83.63] | |
| 216 | + Second coordinate of image center in degrees (DEC or galactic b) (-90-90) [22.01] | |
| 217 | + Coordinate System (CEL|GAL) [CEL] | |
| 218 | + Projection method (AIT|AZP|CAR|MER|MOL|STG|TAN) [CAR] | |
| 219 | + Size of the X axis in pixels [100] | |
| 220 | + Size of the Y axis in pixels [100] | |
| 221 | + Pixel size (deg/pixel) [0.02] | |
| 222 | + Residual map computation algorithm (SUB|SUBDIV|SUBDIVSQRT) [SUB] | |
| 223 | + Output residual map file [resmap.fits] | |
| 224 | + | |
| 225 | +Example binned/stacked observation container | |
| 226 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 227 | +The tool behaves differently if the input observation parameter is a count cube. It will query for the additional binned reponse components. | |
| 228 | + | |
| 229 | +.. code-block:: bash | |
| 230 | + | |
| 231 | + $ csresmap | |
| 232 | + Input event list, counts cube, or observation definition XML file [cntcube.fits] | |
| 233 | + Input model cube file (generated with ctmodel) [NONE] | |
| 234 | + Input exposure cube file (only needed for stacked analysis) [expcube.fits] | |
| 235 | + Input PSF cube file (only needed for stacked analysis) [psfcube.fits] | |
| 236 | + Input background cube file (only needed for stacked analysis) [bkgcube.fits] | |
| 237 | + Input model XML file [binned_results.xml] | |
| 238 | + Residual map computation algorithm (SUB|SUBDIV|SUBDIVSQRT) [SUB] | |
| 239 | + Output residual map file [resmap.fits] | |
| 240 | + | |
| 241 | +Note that the tool also queries for an input model cube file (which we set to ``NONE`` here). This is very convenient in case the model cube has already been precomputed | |
| 242 | +using :ref:`ctmodel`. | |
| 243 | + | |
| 244 | +Example with input model cube | |
| 245 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 246 | +In case a model cube can be provided, :ref:`csresmap` simply collapses both cube into one skymap and applies the specified algorithm. | |
| 247 | + | |
| 248 | +.. code-block:: bash | |
| 249 | + | |
| 250 | + $ csresmap | |
| 251 | + Input event list, counts cube, or observation definition XML file [cntcube.fits] | |
| 252 | + Input model cube file (generated with ctmodel) [modcube.fits] | |
| 253 | + Residual map computation algorithm (SUB|SUBDIV|SUBDIVSQRT) [SUB] | |
| 254 | + Output residual map file [resmap.fits] | |
| 255 | + | |
| 201 | 256 | |
| 202 | 257 | Compute a test statistics (TS) map |
| 203 | 258 | ---------------------------------- |
| 204 | -The test statistics is more precise measurement of statistic than the ``SUBDIVSQRT`` option in :ref:`csresmap`. | |
| 259 | +The test statistics quantity is a more precise measurement of statistic than the ``SUBDIVSQRT`` option in :ref:`csresmap`. | |
| 205 | 260 | To get familiar with the concept of this procedure, :ref:`read more about TS maps <sec_tsmap>`. |
| 206 | 261 | |
| 207 | 262 | .. code-block:: bash |
| 208 | 263 | |
| 209 | - $ cttsmap | |
| 264 | + $ cttsmap | |
| 265 | + Input event list, counts cube or observation definition XML file [selected_obs.xml] | |
| 266 | + Input model XML file [crab_results.xml] | |
| 267 | + Test source name [Crab] | |
| 268 | + First coordinate of image center in degrees (RA or galactic l) (0-360) [83.63] | |
| 269 | + Second coordinate of image center in degrees (DEC or galactic b) (-90-90) [22.01] | |
| 270 | + Projection method (AIT|AZP|CAR|MER|MOL|STG|TAN) [CAR] | |
| 271 | + Coordinate system (CEL - celestial, GAL - galactic) (CEL|GAL) [CEL] | |
| 272 | + Image scale (in degrees/pixel) [0.05] | |
| 273 | + Size of the X axis in pixels [20] | |
| 274 | + Size of the Y axis in pixels [20] | |
| 275 | + Output Test Statistic map file [tsmap.fits] | |
| 276 | + | |
| 277 | +The output file will contain a sky map holding the TS map. In complementary extensions, for each free parameter of the source model, a map displaying the parameter | |
| 278 | +value is added to the output file. For instance a map of the prefactor can be visualised with `DS9 <http://ds9.si.edu/>`_ as follows: | |
| 279 | + | |
| 280 | +.. code-block:: bash | |
| 281 | + | |
| 282 | + $ ds9 tsmap.fits[Prefactor] | |
| 210 | 283 | |
| 211 | 284 | Since :ref:`cttsmap` has to run a parameter optimisation in each skymap bin, it is very time comsuming to |
| 212 | -compute a fine-granulated TS sky map. Read here how to split up the :ref:`computation into several jobs <sec_tips>`. | |
| 285 | +compute a fine-granulated TS sky map. Read here how to split up the :ref:`computation into several jobs <sec_tips>`. | |
| 286 | +Similar as many other tools :ref:`cttsmap` can also work on binned observation input: | |
| 287 | + | |
| 288 | +.. code-block:: bash | |
| 289 | + | |
| 290 | + $ cttsmap debug=yes | |
| 291 | + Input event list, counts cube or observation definition XML file [cntcube.fits] | |
| 292 | + Input exposure cube file (only needed for stacked analysis) [expcube.fits] | |
| 293 | + Input PSF cube file (only needed for stacked analysis) [psfcube.fits] | |
| 294 | + Input background cube file (only needed for stacked analysis) [bkgcube.fits] | |
| 295 | + Input model XML file [binned_results.xml] | |
| 296 | + Test source name [Crab] | |
| 297 | + First coordinate of image center in degrees (RA or galactic l) (0-360) [83.63] | |
| 298 | + Second coordinate of image center in degrees (DEC or galactic b) (-90-90) [22.01] | |
| 299 | + Projection method (AIT|AZP|CAR|MER|MOL|STG|TAN) [CAR] | |
| 300 | + Coordinate system (CEL - celestial, GAL - galactic) (CEL|GAL) [CEL] | |
| 301 | + Image scale (in degrees/pixel) [0.05] | |
| 302 | + Size of the X axis in pixels [20] | |
| 303 | + Size of the Y axis in pixels [20] | |
| 304 | + Output Test Statistic map file [tsmap.fits] | |
| 305 | + | |
| 306 | + | |
| 213 | 307 | \ No newline at end of file | ... | ... |