Creates an observation XML file for IACTs using a list of observation IDs as input.
This script creates an observation XML file from a list of observation IDs provided in an ASCII file. Such an ASCII file can for instance be created with csfindobs. The script operates on IACT data that needs to be present on the user machine. See here how IACT data should be structured.
The parameter datapath is only queried if the environment variable $VHEFITS is not set.
Besides creating an observation XML file, this script also stores a model XML file that contains a background model for each observation. The number of free parameters per background model is steered via the bkgpars parameter.
The user can also specify as inmodel parameter an XML model file with e.g. sky models. The output model will then contain these models as well.
The script further allows to specify hierarchies for the data formats and background models. The script will pick the first available option and fall back to the next one if the first choice is unavailable. If e.g. the IRF background model is not available, the script will assign the next background model in the hierarchy bkg_mod_hiera. If the user wants to use a Gaussian background model as first choice, the parameter bkg_mod_hiera should be specified to “gauss”. In addition, the user can specify start parameters for the background parameters that will be in the output XML model.
If an observation that given in the input ASCII file is not available on the user machine, the script dumps a warning into the logfile and the observation is skipped.
chatter = 0: no information will be logged
chatter = 1: only errors will be logged
chatter = 2: errors and actions will be logged
chatter = 3: report about the task execution
chatter = 4: detailed report about the task execution