Commit 8183808c572d88b664313c106e0e1e8b6eaeb34d

Authored by Jürgen Knödlseder
1 parent bd585ba9

Add ebinfile parameter.

doc/source/reference_manual/csresmap.rst
@@ -15,58 +15,58 @@ This scripts generates a residual counts map. @@ -15,58 +15,58 @@ This scripts generates a residual counts map.
15 General parameters 15 General parameters
16 ------------------ 16 ------------------
17 17
18 -``inobs = obs.xml [file]`` 18 +``inobs [file]``
19 Input event list, counts cube or observation definition XML file. 19 Input event list, counts cube or observation definition XML file.
20 20
21 -``inmodel = crab.xml [file]`` 21 +``inmodel [file]``
22 Model XML file. 22 Model XML file.
23 23
24 -``outmap = resmap.fits [file]`` 24 +``outmap [file]``
25 Output residual counts map file. 25 Output residual counts map file.
26 26
27 -``caldb = dummy [string]`` 27 +``caldb [string]``
28 Calibration database. 28 Calibration database.
29 29
30 -``irf = cta_dummy_irf [string]`` 30 +``irf [string]``
31 Instrument response function. 31 Instrument response function.
32 32
33 -``ebinalg = LOG <FILE|LIN|LOG> [string]`` 33 +``(ebinalg = LOG) <FILE|LIN|LOG> [string]``
34 Algorithm for defining energy bins. 34 Algorithm for defining energy bins.
35 35
36 -``emin = 0.1 [real]`` 36 +``(emin = 0.1) [real]``
37 Lower energy value for first energy bin (in TeV). 37 Lower energy value for first energy bin (in TeV).
38 38
39 -``emax = 100.0 [real]`` 39 +``(emax = 100.0) [real]``
40 Upper energy value for last energy bin (in TeV). 40 Upper energy value for last energy bin (in TeV).
41 41
42 -``enumbins =20 [integer]`` 42 +``(enumbins = 20) [integer]``
43 Number of energy bins. 43 Number of energy bins.
44 44
45 -``ebinfile = NONE [file]`` 45 +``(ebinfile = NONE) [file]``
46 Name of the file containing the energy bin definition. 46 Name of the file containing the energy bin definition.
47 47
48 -``nxpix = 200 [integer]`` 48 +``nxpix [integer]``
49 Number of cube bins in Right Ascension or Galactic longitude. 49 Number of cube bins in Right Ascension or Galactic longitude.
50 50
51 -``nypix = 200 [integer]`` 51 +``nypix [integer]``
52 Number of cube bins in Declination or Galactic latitude. 52 Number of cube bins in Declination or Galactic latitude.
53 53
54 -``binsz = 0.02 [real]`` 54 +``binsz [real]``
55 Cube bin size (in degrees/pixel). 55 Cube bin size (in degrees/pixel).
56 56
57 -``coordsys = CEL <CEL|GAL> [string]`` 57 +``coordsys <CEL|GAL> [string]``
58 Coordinate system (CEL - celestial, GAL - galactic). 58 Coordinate system (CEL - celestial, GAL - galactic).
59 59
60 -``xref = 83.63 [real]`` 60 +``xref [real]``
61 Right Ascension / Galactic longitude of cube centre (J2000, in degrees). 61 Right Ascension / Galactic longitude of cube centre (J2000, in degrees).
62 62
63 -``yref = 22.01 [real]`` 63 +``yref [real]``
64 Declination / Galactic latitude of cube centre (J2000, in degrees). 64 Declination / Galactic latitude of cube centre (J2000, in degrees).
65 65
66 -``proj = CAR <AIT|AZP|CAR|MER|MOL|STG|TAN> [string]`` 66 +``proj <AIT|AZP|CAR|MER|MOL|STG|TAN> [string]``
67 Projection method. 67 Projection method.
68 68
69 -``algorithm = SUBDIV <SUB|SUBDIV|SUBDIVSQRT> [string]`` 69 +``(algorithm = SUBDIV) <SUB|SUBDIV|SUBDIVSQRT> [string]``
70 Algorithm used to generate the residual map. 70 Algorithm used to generate the residual map.
71 71
72 72
scripts/csresmap.py
@@ -105,10 +105,11 @@ class csresmap(ctools.cscript): @@ -105,10 +105,11 @@ class csresmap(ctools.cscript):
105 pars.append(gammalib.GApplicationPar("outmap","f","a","resmap.fits","","","Output residual map")) 105 pars.append(gammalib.GApplicationPar("outmap","f","a","resmap.fits","","","Output residual map"))
106 pars.append(gammalib.GApplicationPar("caldb","s","a","dummy","","","Calibration database")) 106 pars.append(gammalib.GApplicationPar("caldb","s","a","dummy","","","Calibration database"))
107 pars.append(gammalib.GApplicationPar("irf","s","a","cta_dummy_irf","","","Instrument response function")) 107 pars.append(gammalib.GApplicationPar("irf","s","a","cta_dummy_irf","","","Instrument response function"))
  108 + pars.append(gammalib.GApplicationPar("ebinalg","s","h","LOG","LIN|LOG|FILE","","Binning algorithm"))
108 pars.append(gammalib.GApplicationPar("emin","r","h","0.1","","","Lower energy limit (TeV)")) 109 pars.append(gammalib.GApplicationPar("emin","r","h","0.1","","","Lower energy limit (TeV)"))
109 pars.append(gammalib.GApplicationPar("emax","r","h","100.0","","","Upper energy limit (TeV)")) 110 pars.append(gammalib.GApplicationPar("emax","r","h","100.0","","","Upper energy limit (TeV)"))
110 pars.append(gammalib.GApplicationPar("enumbins","i","h","20","","","Number of energy bins")) 111 pars.append(gammalib.GApplicationPar("enumbins","i","h","20","","","Number of energy bins"))
111 - pars.append(gammalib.GApplicationPar("ebinalg","s","h","LOG","LIN|LOG|FILE","","Binning algorithm")) 112 + pars.append(gammalib.GApplicationPar("ebinfile","f","h","NONE","","","Name of the file containing the energy bin definition"))
112 pars.append(gammalib.GApplicationPar("coordsys","s","a","CEL","CEL|GAL","","Coordinate System")) 113 pars.append(gammalib.GApplicationPar("coordsys","s","a","CEL","CEL|GAL","","Coordinate System"))
113 pars.append(gammalib.GApplicationPar("proj","s","a","CAR","AIT|AZP|CAR|MER|MOL|STG|TAN","","Projection method")) 114 pars.append(gammalib.GApplicationPar("proj","s","a","CAR","AIT|AZP|CAR|MER|MOL|STG|TAN","","Projection method"))
114 pars.append(gammalib.GApplicationPar("xref","r","a","83.63","0","360","First coordinate of image center in degrees (RA or galactic l)")) 115 pars.append(gammalib.GApplicationPar("xref","r","a","83.63","0","360","First coordinate of image center in degrees (RA or galactic l)"))