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