Commit aeaf83587e00d1e5094fa9b7d8c61037d663b21b

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

Add expcube and psfcube parameters to test script.

src/ctbutterfly/ctbutterfly.par
... ... @@ -20,8 +20,8 @@
20 20 inobs, f, a, "events.fits",,,"Input event list, counts cube or observation definition file"
21 21 inmodel, f, a, "$CTOOLS/share/models/crab.xml",,, "Source model"
22 22 srcname, s, a, "Crab",,,"Source of interest"
23   -expcube, f, a, NONE,,, "Exposure cube file (only needed for stacked analysis)"
24   -psfcube, f, a, NONE,,, "PSF cube file (only needed for stacked analysis)"
  23 +expcube, f, a, "NONE",,, "Exposure cube file (only needed for stacked analysis)"
  24 +psfcube, f, a, "NONE",,, "PSF cube file (only needed for stacked analysis)"
25 25 caldb, s, a, "dummy",,, "Calibration database"
26 26 irf, s, a, "cta_dummy_irf",,, "Instrument response function"
27 27 outfile, f, a, "butterfly.txt",,, "Output ascii file"
... ...
src/ctexpcube/ctexpcube.par
... ... @@ -34,7 +34,7 @@ ebinfile, f, h, "NONE",,,"Name of the file containing the energy bin definition"
34 34 #
35 35 # Spatial binning parameters
36 36 #===========================
37   -usepnt, b, h, no,,, "Use pointing instead of xref/yref parameters?"
  37 +usepnt, b, h, no,,, "Use pointing instead of xref/yref parameters?"
38 38 nxpix, i, a, 200,,, "Size of the X axis in pixels"
39 39 nypix, i, a, 200,,, "Size of the Y axis in pixels"
40 40 binsz, r, a, 0.02,,, "Image scale (in degrees/pixel)"
... ...
src/ctlike/ctlike.par
... ... @@ -19,8 +19,8 @@
19 19 #===================
20 20 inobs, f, a, "events.fits",,, "Event list, counts cube or observation definition file"
21 21 inmodel, f, a, "$CTOOLS/share/models/crab.xml",,, "Source model"
22   -expcube, f, a, NONE,,, "Exposure cube file (only needed for stacked analysis)"
23   -psfcube, f, a, NONE,,, "PSF cube file (only needed for stacked analysis)"
  22 +expcube, f, a, "NONE",,, "Exposure cube file (only needed for stacked analysis)"
  23 +psfcube, f, a, "NONE",,, "PSF cube file (only needed for stacked analysis)"
24 24 caldb, s, a, "dummy",,, "Calibration database"
25 25 irf, s, a, "cta_dummy_irf",,, "Instrument response function"
26 26 outmodel, f, a, "crab_results.xml",,, "Source model output file"
... ...
src/ctmodel/ctmodel.par
... ... @@ -25,8 +25,8 @@ edisp, b, h, no,,, "Apply energy dispersion?"
25 25 # Observation parameters
26 26 #=======================
27 27 inobs, f, a, "NONE",,, "Event list, counts cube or observation definition file"
28   -expcube, f, a, NONE,,, "Exposure cube file (only needed for stacked analysis)"
29   -psfcube, f, a, NONE,,, "PSF cube file (only needed for stacked analysis)"
  28 +expcube, f, a, "NONE",,, "Exposure cube file (only needed for stacked analysis)"
  29 +psfcube, f, a, "NONE",,, "PSF cube file (only needed for stacked analysis)"
30 30 caldb, s, a, "dummy",,, "Calibration database"
31 31 irf, s, a, "cta_dummy_irf",,, "Instrument response function"
32 32 ra, r, a, 83.63,0,360, "RA of pointing (degrees)"
... ...
src/ctskymap/ctskymap.par
... ... @@ -27,7 +27,7 @@ emax, r, a, 100.0,,,"Maximum energy in TeV"
27 27 #
28 28 # Spatial binning parameters
29 29 #===========================
30   -usepnt, b, h, no,,, "Use pointing instead of xref/yref parameters?"
  30 +usepnt, b, h, no,,, "Use pointing instead of xref/yref parameters?"
31 31 nxpix, i, a, 200,,, "Size of the X axis in pixels"
32 32 nypix, i, a, 200,,, "Size of the Y axis in pixels"
33 33 binsz, r, a, 0.02,,, "Image scale (in degrees/pixel)"
... ...
src/cttsmap/cttsmap.par
... ... @@ -20,8 +20,8 @@
20 20 inobs, f, a, "events.fits",,, "Input event list, counts cube or observation definition file"
21 21 inmodel, f, a, "$CTOOLS/share/models/crab.xml",,, "Source model"
22 22 srcname, s, a, "Crab",,, "Test source"
23   -expcube, f, a, NONE,,, "Exposure cube file (only needed for stacked analysis)"
24   -psfcube, f, a, NONE,,, "PSF cube file (only needed for stacked analysis)"
  23 +expcube, f, a, "NONE",,, "Exposure cube file (only needed for stacked analysis)"
  24 +psfcube, f, a, "NONE",,, "PSF cube file (only needed for stacked analysis)"
25 25 caldb, s, a, "dummy",,, "Calibration database"
26 26 irf, s, a, "cta_dummy_irf",,, "Instrument response function"
27 27 outmap, f, a, "tsmap.fits",,, "Output Test Statistic map"
... ... @@ -29,10 +29,10 @@ outmap, f, a, "tsmap.fits",,, "Output Test Statistic map"
29 29 #
30 30 # Spatial binning parameters
31 31 #===========================
32   -usepnt, b, h, no,,, "Use pointing instead of xref/yref parameters?"
33   -nxpix, i, a, 200,,, "Size of the X axis in pixels"
34   -nypix, i, a, 200,,, "Size of the Y axis in pixels"
35   -binsz, r, a, 0.02,,, "Image scale (in degrees/pixel)"
  32 +usepnt, b, h, no,,, "Use pointing instead of xref/yref parameters?"
  33 +nxpix, i, a, 200,,, "Size of the X axis in pixels"
  34 +nypix, i, a, 200,,, "Size of the Y axis in pixels"
  35 +binsz, r, a, 0.02,,, "Image scale (in degrees/pixel)"
36 36 coordsys, s, a, "CEL", CEL|GAL,,"Coordinate system (CEL - celestial, GAL - galactic)"
37 37 xref, r, a, 83.63,,, "First coordinate of image center in degrees (RA or galactic l)"
38 38 yref, r, a, 22.01,,, "Second coordinate of image center in degrees (DEC or galactic b)"
... ...
test/test_ctools.sh
... ... @@ -2,7 +2,7 @@
2 2 # ==========================================================================
3 3 # This script tests all ctools
4 4 #
5   -# Copyright (C) 2011-2014 Juergen Knoedlseder
  5 +# Copyright (C) 2011-2015 Juergen Knoedlseder
6 6 #
7 7 # This program is free software: you can redistribute it and/or modify
8 8 # it under the terms of the GNU General Public License as published by
... ... @@ -202,6 +202,8 @@ $ECHO -n "Test ctmodel: "
202 202 $ctmodel inobs="cntmap.fits" \
203 203 incube="cntmap.fits" \
204 204 outcube="modmap1.fits" \
  205 + expcube="NONE" \
  206 + psfcube="NONE" \
205 207 caldb="irf" \
206 208 irf="cta_dummy_irf" \
207 209 inmodel="data/crab.xml"
... ... @@ -249,6 +251,8 @@ fi
249 251 $ctmodel inobs="cntmap2.fits" \
250 252 incube="cntmap2.fits" \
251 253 outcube="modmap2.fits" \
  254 + expcube="NONE" \
  255 + psfcube="NONE" \
252 256 caldb="irf" \
253 257 irf="cta_dummy_irf" \
254 258 inmodel="data/model_background_cube.xml"
... ... @@ -296,6 +300,8 @@ $ECHO -n "Test ctlike: "
296 300 $ctlike inobs="cntmap.fits" \
297 301 inmodel="data/crab.xml" \
298 302 outmodel="results_binned.xml" \
  303 + expcube="NONE" \
  304 + psfcube="NONE" \
299 305 caldb="irf" \
300 306 irf="cta_dummy_irf"
301 307 $ECHO -n "."
... ... @@ -341,6 +347,8 @@ fi
341 347 $ctlike inobs="cntmap2.fits" \
342 348 inmodel="data/model_background_cube.xml" \
343 349 outmodel="results_binned_background_cube.xml" \
  350 + expcube="NONE" \
  351 + psfcube="NONE" \
344 352 caldb="irf" \
345 353 irf="cta_dummy_irf"
346 354 $ECHO -n "."
... ...