The following is an example of a parameter input file. It demonstrates how one can incorporate comments into the file, as well as how to specify variable values.
# This is an example parameter file that can be used with the routine # InnerTC. This file also documents the values that may be used with # the routine. # # === The following rules for constructing the file are used. === # # 1. Any line beginning with a pound sign (#) is completely ignored. # This permits users to enter copious comments into the file. Also, # lines that are completely blank are ignored, as well. # 2. Any information on a line after a pound sign (#), including the # pound sign itself, is ignored. # 3. Lines, except for comment lines, should never exceed 80 characters # in length. # 4. An equals sign (=) MUST appear between the name of a variable and # the value of the variable. # 5. File names provided should be <= 64 characters in length. # 6. The case (upper, lower, or mixed) of a variable name provided is # irrelevant. The case of the variable values is also irrelevant, # except for the case of any file names provided. # # Example: DENSITY=2.67 and density=2.67 are equivalent. # # 7. If one wishes to use the debugging feature of InnerTC, it is best # to always provide the value of the variable DEBUG as the first # variable provided in the input file. # 8. The BOOLEAN variables DEBUG and VERBOSE can be set TRUE by specifying # them as either "true", "on", or "yes" (without the quotation marks). # Any other values imply FALSE. # 9. The only variables for which one MUST provide a value are "gravfile" # and "demfile". The program will not execute if these values are # not provided. Defaults are taken for ALL other variable values. # 10. Blanks may appear on either side of the equals sign (=). For example, # "rmin = 50.0", "rmin= 50.0", and "rmin =50.0" are equivalent. # debug=true # default is FALSE verbose=false # default is FALSE ####################################################################### # The two variables below are REQUIRED # ####################################################################### gravfile=testgrav.dat # REQUIRED to provide a value for the gravity data file demfile=demfile.bin # Binary DEM data file produced by DemRead rmin=30.0 # default is 30 meters rmed=250.0 # default is 250 meters rmax=2000.0 # default is 2000 meters fileformat=0 # default is 0; see table below for possible values listfile=InnerTC.lst outfile=InnerTC.out auxelevfile= # Irrelevant unless auxiliary elevations are available density=2.25 elevbias=0.0 # Elevation bias is provided in meters elevunits=1 # Only values are either 0 [feet] or 1 [meters] # # elevtype: if 0, the elevations accompanying the gravity stations are # used for the terrain corrections. if 1, an interpolated elevation # at the position gravity station location is used for the # calculation of the terrain corrections. If 2, corrections using # both the actual elevation (that is, the elevation accompanying the # gravity station) and the interpolated elevation are calculated. elevtype = 1 # Possible values are 0, 1, or 2 ellipsoid=0 requat=6378137.0 # ignored unless ellipsoid=99 rpolar=6356752.3142 # ignored unless ellipsoid=99 # # The variable 'ellipsoid' specifies which reference ellipsoid is to # be used to convert geographic coordinates (that is, latitudes and # longitudes) to rectangular coordinates, using a UTM projection. # The codes corresponding to selected reference elipsoids are tabulated # below. If the users wishes to use an ellipsoid not listed here, the # variable 'ellipsoid' should be set to 99 AND the values of the # Equatorial (requat) and Polar (rpolar) radii of the user-specified # ellipsoid should be provided. The values specified for 'requat' and # 'rpolar' are always ignored UNLESS the value of 'ellipsoid' is 99. # # (meters) (meters) # Ellipsoid Description Requat Rpolar # ~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~ ~~~~~~ # 0 Clarke 1866 Ellipsoid (US)..... 6378206.4 6356583.8 # 1 WGS'84......................... 6378137.0 6356752.3142 # 2 WGS'72......................... 6378135.0 6356750.5 # 3 GRS 1980 (same as WGS'84)...... 6378137.0 6356752.3142 # 4 Clarke 1880 Ellipsoid.......... 6378249.145 6356514.8696 # 5 Australian Ellipsoid........... 6378160.0 6356774.7192 # 6 Krasovsky Ellipsoid (Russia)... 6378245.0 6356863.0 # 7 International.................. 6378388.0 6356911.9462 # 8 Hayford (same as International) 6378388.0 6356911.9462 # 9 Airy Ellipsoid................. 6377563.4 6356256.9 # 10 Modified Airy.................. 6377340.189 6356034.446 # 11 Bessel 1841 Ellipsoid.......... 6377397.155 6356078.9629 # 12 Everest Ellipsoid.............. 6377276.3452 6356075.41511 # 13 Modified Everest............... 6377304.063 6356103.039 # 99 User-Specified................. -- User Provides -- # # # # ###################################################################### # == Description of the fileformat flag == # ###################################################################### # # Value Data expected # ~~~~~ ~~~~~~~~~~~~~ # 0 station,lat,latm, long,longm,elevation,obs gravity # 1 station,latd, longd, elevation,obs gravity # 2 station,lat,latmin,lats,long,longmin,longs,elevation,obs gravity # 3 station,long,longm,lat,latm ,elevation,obs gravity # 4 station,longd,latd, ,elevation,obs gravity # 5 station,long,longmin,longs,lat,latmin,lats,elevation,obs gravity # 10 lat,latm, long,longm,station,elevation,obs gravity # 11 latd, longd,station, elevation,obs gravity # 12 lat,latmin,lats,long,longmin,longs,station,elevation,obs gravity # 13 long,longm,lat,latm ,station,elevation,obs gravity # 14 longd,latd, ,station,elevation,obs gravity # 15 long,longmin,longs,lot,latmin,lats,station,elevation,obs gravity #