Commit 3377b3d7dda34a052e5054531c72696bbfef94cc

Authored by Michael Mayer
1 parent 57c9b60c

Added documentation for csmodelinfo

cscripts/csmodelinfo.py
... ... @@ -89,13 +89,13 @@ class csmodelinfo(ctools.cscript):
89 89 pars.append(gammalib.GApplicationPar("pnt_mark_size","i","h","12","","","Marker size for point sources"))
90 90 pars.append(gammalib.GApplicationPar("show_labels","b","h","yes","yes|no","","Add source labels?"))
91 91 pars.append(gammalib.GApplicationPar("width","i","h","2","","","Line width for regions"))
92   - pars.append(gammalib.GApplicationPar("font","s","h","helvetica","","","Font for source labels"))
  92 + pars.append(gammalib.GApplicationPar("font","s","h","helvetica","helvetica|times|courier","","Font for source labels"))
93 93 pars.append(gammalib.GApplicationPar("fontsize","i","h","12","","","Font size for source labels"))
94   - pars.append(gammalib.GApplicationPar("fonttype","s","h","normal","normal|bold","","Normal or bold font?"))
  94 + pars.append(gammalib.GApplicationPar("fonttype","s","h","normal","normal|bold","","Use normal or bold font?"))
95 95 pars.append(gammalib.GApplicationPar("fonttype2","s","h","roman","roman|italic","","Use roman or italic font?"))
96 96 pars.append(gammalib.GApplicationPar("show_ext_type","b","h","yes","yes|no","","Show type of extended model in source name"))
97 97 pars.append(gammalib.GApplicationPar("free_color","s","h","green","","","Color for sources with free parameters (any ds9 color or hex code)"))
98   - pars.append(gammalib.GApplicationPar("fixed_color","s","h","magenta","","","Color for source with fixed parameters (any ds9 color or hex code)"))
  98 + pars.append(gammalib.GApplicationPar("fixed_color","s","h","magenta","","","Color for source without free parameters (any ds9 color or hex code)"))
99 99 pars.append_standard()
100 100 pars.append(gammalib.GApplicationPar("logfile","f","h","csmodelinfo.log","","","Log filename"))
101 101 pars.save(parfile)
... ... @@ -473,7 +473,8 @@ class csmodelinfo(ctools.cscript):
473 473 ds9string += "color="+color+" "
474 474 ds9string += "width="+str(self.width)+" "
475 475 ds9string += "font=\""+self.font+" "+str(self.fontsize)+" "+self.fonttype+" "+self.fonttype2+"\" "
476   - ds9string += "text={"+modelname+"}"
  476 + if self.show_labels:
  477 + ds9string += "text={"+modelname+"}"
477 478  
478 479 # Return string
479 480 return ds9string
... ...
doc/source/reference_manual/csmodelinfo.rst 0 → 100644
  1 +.. _csmodelinfo:
  2 +
  3 +csmodelinfo
  4 +======
  5 +
  6 +Dumps information about a model container into log file or on screen
  7 +
  8 +
  9 +Synopsis
  10 +--------
  11 +
  12 +This script provides detailled information about a given model container.
  13 +It presents the number of parameters, the number of free parameters (sub-divided by
  14 +spectral, spatial and temporal type). The tool further creates information about any
  15 +parameter that is stuck at the parameter boundaries. This might be quite useful for
  16 +debugging a fit.
  17 +Finally the tool also list the TS values of each source that was fitted, in order
  18 +have a quick overview on these quantities on the screen.
  19 +
  20 +In addition the tool is also capable of exporting the input model XML container to
  21 +a region file which is compatible to be read with ds9 or other displying tools.
  22 +To create a region file, the hidden parameter "ds9file" needs to be specified. There
  23 +are quite a few further hidden parameters to steer e.g. color, font, etc of the region
  24 +file output.
  25 +
  26 +
  27 +General parameters
  28 +------------------
  29 +
  30 +``inmodel [file]``
  31 + Event list, counts cube, or observation definition file
  32 +
  33 +``(ds9file = NONE) [file]``
  34 + Output DS9 region file containing models
  35 +
  36 +``(pnt_type=cross) <circle|box|diamond|cross|x|arrow|boxcircle> [string]``
  37 + Marker type for point sources
  38 +
  39 +``pnt_mark_size [integer]``
  40 + Marker size for point sources
  41 +
  42 +``(show_labels=yes) [boolean]``
  43 + Add source labels?
  44 +
  45 +``(width=2) [integer]``
  46 + Line width for regions
  47 +
  48 + ``(font=helvetica) <helvetica|times|courier> [string]``
  49 + Font for source labels
  50 +
  51 +``(fontsize=12) [integer]``
  52 + Font size for source labels
  53 +
  54 +``(fonttype=normal) <normal|bold> [string]``
  55 + Use normal or bold font?
  56 +
  57 +``(fonttype2=roman) <roman|italic> [string]``
  58 + Use roman or italic font?
  59 +
  60 +``(show_ext_type=yes) [boolean]``
  61 + Show type of extended model in source name?
  62 +
  63 +``(free_color=green) [string]``
  64 + Color for sources with free parameters (any ds9 color or hex code)
  65 +
  66 +``(fixed_color=magenta) [string]``
  67 + Color for sources without free parameters (any ds9 color or hex code)
  68 +
  69 +
  70 +Standard parameters
  71 +-------------------
  72 +
  73 +``(chatter = 2) [integer]``
  74 + Verbosity of the executable:
  75 + chatter = 0: no information will be logged
  76 +
  77 + chatter = 1: only errors will be logged
  78 +
  79 + chatter = 2: errors and actions will be logged
  80 +
  81 + chatter = 3: report about the task execution
  82 +
  83 + chatter = 4: detailed report about the task execution
  84 +
  85 +``(clobber = yes) [boolean]``
  86 + Specifies whether an existing output counts cube should be overwritten.
  87 +
  88 +``(debug = no) [boolean]``
  89 + Enables debug mode. In debug mode the executable will dump any log file output to the console.
  90 +
  91 +``(mode = ql) [string]``
  92 + Mode of automatic parameters (default is "ql", i.e. "query and learn").
  93 +
  94 +``(logfile = cssens.log) [filename]``
  95 + Log filename.
  96 +
  97 +
  98 +Related tools or scripts
  99 +------------------------
  100 +
... ...
doc/source/reference_manual/index.rst
... ... @@ -45,3 +45,5 @@ cscripts
45 45 csspec --- Computes spectral points <csspec>
46 46 csresmap --- Generates residual map <csresmap>
47 47 cstsdist --- Generates TS distribution <cstsdist>
  48 + csobsinfo --- Shows detailled information about an observation container
  49 + csmodelinfo --- Shows detailled information about a model container
... ...