Commit ca70096bdc4a5c4c422c94607ccd19309cea5ec4
1 parent
abb14b99
Add 1DC documentation HowTo sections
Showing
10 changed files
with
174 additions
and
5 deletions
cscripts/cstsmapsplit.par
| ... | ... | @@ -47,7 +47,6 @@ proj, s, a, CAR, AIT|AZP|CAR|MER|MOL|STG|TAN,, "Projection method" |
| 47 | 47 | # |
| 48 | 48 | # Standard parameters |
| 49 | 49 | #==================== |
| 50 | -publish, b, h, no,,, "Publish Test Statistic map on VO Hub?" | |
| 51 | 50 | chatter, i, h, 2,0,4, "Chattiness of output" |
| 52 | 51 | clobber, b, h, yes,,, "Overwrite existing output files with new output files?" |
| 53 | 52 | debug, b, h, no,,, "Debugging mode activated" | ... | ... |
doc/source/users/reference_manual/cstsmapsplit.rst
| ... | ... | @@ -90,9 +90,6 @@ General parameters |
| 90 | 90 | Standard parameters |
| 91 | 91 | ------------------- |
| 92 | 92 | |
| 93 | -``(publish = no) [boolean]`` | |
| 94 | - Specifies whether the TS map should be published on VO Hub. | |
| 95 | - | |
| 96 | 93 | ``(chatter = 2) [integer]`` |
| 97 | 94 | Verbosity of the executable: |
| 98 | 95 | chatter = 0: no information will be logged | ... | ... |
doc/source/users/tutorials/1dc/howto.rst
| ... | ... | @@ -9,12 +9,14 @@ issues. |
| 9 | 9 | .. toctree:: |
| 10 | 10 | :maxdepth: 2 |
| 11 | 11 | |
| 12 | + howto_display | |
| 12 | 13 | howto_ts |
| 13 | 14 | howto_tsmap |
| 14 | 15 | howto_ulimit |
| 15 | 16 | howto_lightcurve |
| 16 | 17 | howto_phasecurve |
| 17 | 18 | howto_exclude |
| 19 | + howto_vo | |
| 18 | 20 | |
| 19 | 21 | If you cannot find the answer to your question, have a look at the |
| 20 | 22 | :ref:`first steps with ctools <quickstart>` | ... | ... |
doc/source/users/tutorials/1dc/howto_display.rst
0 → 100644
| 1 | +.. _1dc_howto_display: | |
| 2 | + | |
| 3 | +How to display the results? | |
| 4 | +--------------------------- | |
| 5 | + | |
| 6 | +The ctools package does not contain any tools or scripts for graphical | |
| 7 | +display of results since results are generally written into standard FITS | |
| 8 | +files that are readily displayed by existing astronomical tools. | |
| 9 | + | |
| 10 | +Nevertheless, for your convenience several scripts for graphical display are | |
| 11 | +included in the ctools package that rely on the | |
| 12 | +`matplotlib <http://matplotlib.org>`_ | |
| 13 | +Python module. You can find these scripts in the | |
| 14 | +``$CTOOLS/share/examples/python`` folder. The following scripts are available: | |
| 15 | + | |
| 16 | ++------------------------+-----------------------------+ | |
| 17 | +| Script | Usage | | |
| 18 | ++========================+=============================+ | |
| 19 | +| ``show_butterfly.py`` | Display a butterfly diagram | | |
| 20 | ++------------------------+-----------------------------+ | |
| 21 | +| ``show_lightcurve.py`` | Display a light curve | | |
| 22 | ++------------------------+-----------------------------+ | |
| 23 | +| ``show_spectrum.py`` | Display a spectrum | | |
| 24 | ++------------------------+-----------------------------+ | ... | ... |
doc/source/users/tutorials/1dc/howto_lightcurve.png
0 → 100644
25.1 KB
doc/source/users/tutorials/1dc/howto_lightcurve.rst
| ... | ... | @@ -3,4 +3,48 @@ |
| 3 | 3 | How to generate a light curve? |
| 4 | 4 | ------------------------------ |
| 5 | 5 | |
| 6 | -To be written ... | |
| 6 | +You can generate a light curve using the :ref:`cslightcrv` script which | |
| 7 | +takes on input an | |
| 8 | +:ref:`event list <glossary_eventlist>` | |
| 9 | +or a | |
| 10 | +:ref:`observation definition XML file <glossary_obsdef>`. | |
| 11 | +:ref:`cslightcrv` divides the event list into a number of intervals and | |
| 12 | +performs a maximum likelihood analyse for each of the intervals. | |
| 13 | +The results are writted into a light curve FITS file. | |
| 14 | + | |
| 15 | +The following example illustrates how you can generate a light curve for | |
| 16 | +``Src001`` for the time interval from 51552.5 to 51552.6 (MJD). Ten time | |
| 17 | +intervals were chosen in this example. | |
| 18 | + | |
| 19 | +.. code-block:: bash | |
| 20 | + | |
| 21 | + $ cslightcrv | |
| 22 | + Input event list or observation definition XML file [events.fits] obs.xml | |
| 23 | + Input model definition XML file [$CTOOLS/share/models/crab.xml] models.xml | |
| 24 | + Source name [Crab] Src001 | |
| 25 | + Algorithm for defining time bins (FILE|LIN|GTI) [GTI] LIN | |
| 26 | + Lightcurve start time (MJD) [51544.5] 51552.5 | |
| 27 | + Lightcurve stop time (MJD) [51544.6] 51552.6 | |
| 28 | + Number of time bins (1-10000) [5] 10 | |
| 29 | + Number of energy bins for binned (0=unbinned) (0-100) [0] | |
| 30 | + Lower energy limit of events (TeV) [0.1] | |
| 31 | + Upper energy limit of events (TeV) [100.0] | |
| 32 | + Output light curve file [lightcurve.fits] | |
| 33 | + | |
| 34 | +The resulting light curve is shown in the figure below. | |
| 35 | + | |
| 36 | +.. figure:: howto_lightcurve.png | |
| 37 | + :width: 600px | |
| 38 | + :align: center | |
| 39 | + | |
| 40 | + *Light curve from 51552.5 to 51552.6 (MJD) for Src001* | |
| 41 | + | |
| 42 | +.. note:: | |
| 43 | + The plot was created using the ``show_lightcurve.py`` script that is | |
| 44 | + located in the ctools example folder. The example script requires the | |
| 45 | + `matplotlib <http://matplotlib.org>`_ Python module for display. | |
| 46 | + You may reproduce the plot by typing | |
| 47 | + | |
| 48 | + .. code-block:: bash | |
| 49 | + | |
| 50 | + $ $CTOOLS/share/examples/python/show_lightcurve.py lightcurve.fits | ... | ... |
doc/source/users/tutorials/1dc/howto_vo.rst
0 → 100644
| 1 | +.. _1dc_howto_vo: | |
| 2 | + | |
| 3 | +How to use Virtual Observatory tools with ctools? | |
| 4 | +------------------------------------------------- | |
| 5 | + | |
| 6 | +Several ctools can interact with Virtual Observatory tools such as | |
| 7 | +`Aladin <http://aladin.u-strasbg.fr>`_ | |
| 8 | +or | |
| 9 | +`Topcat <http://www.star.bris.ac.uk/~mbt/topcat/>`_ | |
| 10 | +for the visualisation and exploration of the analysis results. | |
| 11 | + | |
| 12 | +Let's take the example of generating a sky map, as explained | |
| 13 | +:ref:`before <1dc_sky_map>`. Start with launching the | |
| 14 | +`Aladin <http://aladin.u-strasbg.fr>`_ | |
| 15 | +application on your desktop: | |
| 16 | + | |
| 17 | +.. figure:: howto_vo_aladin_before.png | |
| 18 | + :width: 400px | |
| 19 | + :align: center | |
| 20 | + | |
| 21 | + *Aladin application after start-up* | |
| 22 | + | |
| 23 | +Then use :ref:`ctskymap` to create a sky map and specify ``publish=yes`` | |
| 24 | +as argument after the tool name: | |
| 25 | + | |
| 26 | +.. code-block:: bash | |
| 27 | + | |
| 28 | + $ ctskymap publish=yes | |
| 29 | + Input event list or observation definition XML file [events.fits] obs.xml | |
| 30 | + First coordinate of image center in degrees (RA or galactic l) (0-360) [83.63] 0.0 | |
| 31 | + Second coordinate of image center in degrees (DEC or galactic b) (-90-90) [22.01] 0.0 | |
| 32 | + Projection method (AIT|AZP|CAR|MER|MOL|STG|TAN) [CAR] | |
| 33 | + Coordinate system (CEL - celestial, GAL - galactic) (CEL|GAL) [CEL] GAL | |
| 34 | + Image scale (in degrees/pixel) [0.02] | |
| 35 | + Size of the X axis in pixels [200] 400 | |
| 36 | + Size of the Y axis in pixels [200] 400 | |
| 37 | + Lower energy limit (TeV) [0.1] | |
| 38 | + Upper energy limit (TeV) [100.0] | |
| 39 | + Background subtraction method (NONE|IRF) [NONE] IRF | |
| 40 | + Output skymap file [skymap.fits] | |
| 41 | + | |
| 42 | +Once :ref:`ctskymap` has terminated, the resulting sky map will automatically | |
| 43 | +appear in the | |
| 44 | +`Aladin <http://aladin.u-strasbg.fr>`_ | |
| 45 | +application (see below). | |
| 46 | + | |
| 47 | +.. figure:: howto_vo_aladin_after.png | |
| 48 | + :width: 400px | |
| 49 | + :align: center | |
| 50 | + | |
| 51 | + *Aladin application after ctskymap finished execution* | |
| 52 | + | |
| 53 | +You can then overlay sky maps obtained at other wavelengths for comparison or | |
| 54 | +objects extracted from a catalogue. In the example below we show the overlay | |
| 55 | +of the | |
| 56 | +`SIMBAD <http://simbad.u-strasbg.fr/simbad/>`_ | |
| 57 | +catalogue which allows us to identify ``Src002`` with the Galactic centre. | |
| 58 | + | |
| 59 | +.. figure:: howto_vo_aladin_catalog.png | |
| 60 | + :width: 400px | |
| 61 | + :align: center | |
| 62 | + | |
| 63 | + *Overlay of the SIMBAD catalog over the sky map* | |
| 64 | + | |
| 65 | +Below the list of tools and scripts that interact with Virtual Observatory | |
| 66 | +tools. Some tools or scripts publish tables instead of images, and the tables | |
| 67 | +can for example by displayed and explored using | |
| 68 | +`Topcat <http://www.star.bris.ac.uk/~mbt/topcat/>`_. | |
| 69 | + | |
| 70 | ++-------------------+--------+-------------------+ | |
| 71 | +| Tool or script | Object | VO tool (example) | | |
| 72 | ++===================+========+===================+ | |
| 73 | +| :ref:`cslightcrv` | Table | Topcat | | |
| 74 | ++-------------------+--------+-------------------+ | |
| 75 | +| :ref:`csresmap` | Image | Aladin | | |
| 76 | ++-------------------+--------+-------------------+ | |
| 77 | +| :ref:`csspec` | Table | Topcat | | |
| 78 | ++-------------------+--------+-------------------+ | |
| 79 | +| :ref:`csviscube` | Image | Aladin | | |
| 80 | ++-------------------+--------+-------------------+ | |
| 81 | +| :ref:`ctbin` | Image | Aladin | | |
| 82 | ++-------------------+--------+-------------------+ | |
| 83 | +| :ref:`ctbkgcube` | Image | Aladin | | |
| 84 | ++-------------------+--------+-------------------+ | |
| 85 | +| :ref:`ctcubemask` | Image | Aladin | | |
| 86 | ++-------------------+--------+-------------------+ | |
| 87 | +| :ref:`ctexpcube` | Image | Aladin | | |
| 88 | ++-------------------+--------+-------------------+ | |
| 89 | +| :ref:`ctmapcube` | Image | Aladin | | |
| 90 | ++-------------------+--------+-------------------+ | |
| 91 | +| :ref:`ctmodel` | Image | Aladin | | |
| 92 | ++-------------------+--------+-------------------+ | |
| 93 | +| :ref:`ctobssim` | Table | Topcat | | |
| 94 | ++-------------------+--------+-------------------+ | |
| 95 | +| :ref:`ctselect` | Table | Topcat | | |
| 96 | ++-------------------+--------+-------------------+ | |
| 97 | +| :ref:`ctskymap` | Image | Aladin | | |
| 98 | ++-------------------+--------+-------------------+ | |
| 99 | +| :ref:`cttsmap` | Image | Aladin | | |
| 100 | ++-------------------+--------+-------------------+ | |
| 101 | + | |
| 102 | + | |
| 103 | + | ... | ... |
doc/source/users/tutorials/1dc/howto_vo_aladin_after.png
0 → 100644
376 KB
doc/source/users/tutorials/1dc/howto_vo_aladin_before.png
0 → 100644
108 KB
doc/source/users/tutorials/1dc/howto_vo_aladin_catalog.png
0 → 100644
369 KB