Appendix VI

Parameter File Specification

 

Introduction:

The parameter file format is a general purpose format created to facilitate the use of simple text files for specifying large numbers of parameters to a variety of different programs. This document will describe the format along with the data types that it supports and the syntax that it requires.

Parameter files may be used by anyone who writing a program that requires user-specified values that may change each time the program is run. The format supports the specification of integer, floating-point, character, and list parameters. List parameters are used for grouping together an arbitrary number of parameters under a common label. Figure 5.1 illustrates a portion of a PHG run-time parameter file.

 

Figure A6.1

 

Parameter specifications consist of a type, label, and value. In the first line of figure 5.1 the parameter type is REAL (corresponding to floating point), the label is photon_energy, and the value is 511.0.

White space is ignored. Everything following the last non white-space character of the value is ignored as well (so you can put comments at the end of a parameter line). For STRING parameters the value is delimited with double quotation marks.

Lines that begin with the '#' character are considered comments and are ignored. Blank lines are also ignored. Any line that does not have a '#' character as the first non white-space character must begin with one of the following:

 

For further information on parameter files, including information on how to create your own, refer to the Parameter File section of the Programmer's Manual for the PHG.