The program is a modification of one developed by Donald Plouff of the U. S. Geological Survey (Plouff, 1966). The user must supply two input files for execution. One of these files contains the measured gravity data, including station identifiers, geographic coordinates, elevations, measured gravity values, and so-called "inner-zone" terrain corrections (the latter may be 0). The other file contains the digital terrain data, which must be provided in a prescribed format. Essentially, the digital terrain data are used to correct the gravity data for the effects of terrain from the maximum distance used in the inner-zone correction to a large distance from each station, typically 166.7 km.
The current version was adapted in May 1981 from a version supplied
by Don Plouff of the U. S. Geological Survey (Plouff, 1966). Modifications
made at that time were largely in the area of i/o and use of a more accurate
method of calculating the gravity reference field. Terrain corrections
are calculated exactly as the Plouff version would calculate such corrections.
Following the running title, a card image containing parameters to be used during the reduction process is required. The variables read from this card image and their meanings are as follows.
The gravity data below are provided as an example of an input file to the terrain correction program of Don Plouff, as modified by Allen Cogbill. Any number of title card images may be used as part of a "header" of information. Such information is simply printed (echoed) to the output listing file that the program creates; the facility is designed to permit comments regarding the data set to be printed along with the terrain correction and reduced gravity data set. last Example of a running title card image; this image limited to <= 80 chars. 3 1 979000.00d0 2.20 'TEST' '+' '-' 0 0 (a8,i2,f8.4,i5,f8.4,f9.2,4x,f7.3,15x,f6.3,1x,a20) 800 31 10.5420 -105 21.7799 1403.04 979004.011 0.136 0.015 0.151 Comment # 1 200 31 28.4880 -105 13.2600 1325.40 979064.778 0.023 0.004 0.027 Comment # 2 201 31 28.2360 -105 13.2600 1330.22 979062.765 0.018 0.006 0.025 Comment # 3 202 31 28.0380 -105 13.3200 1333.55 979061.327 0.018 0.006 0.024 Comment # 4The map parameter card image is read using a Fortran free-format read, with variables either comma- or blank-delimited. Thus, CHARACTER variables (such as SOURCE) should be enclosed in single quotation marks.
Immediately following the map parameter card image is a card image containing the user-supplied data input format for the gravity data to follow. This card image must contain a format that conforms to Fortran syntax; the format must be begin and terminate using a left and right parenthesis. It should be designed to permit a single gravity observation and associated data to be read by the reduction program for each execution of a Fortran READ. The gravity data are placed in the file immediately following this card image. Each record of the gravity data must contain the following information, in the order shown below.
The provision of providing multiple map sets permits the program to calculate terrain corrections very rapidly, using small compartment sizes close to a gravity station, and much larger compatment sizes at greater distances. Construction of the various map data sets required to produce such efficiency can be tedious. Alternatives are to either use a single map set having a small compartment size or to automatically produce the required map sets using a computer program. The later is not generally available, as far as I know, but special instances exist for the use of 30-sec compartment sizes.
There is no requirement that multiple map sets be provided. The entire terrain correction can be readily calculated using a single type of terrain data. The ability to combine different map types by using overlapping map sets is strictly a provision that can supply very high efficiency in calculating the terrain corrections. From the user's point of view, using a single type of map data set is much easier to set up, and may be preferable in some cases.
Header for Map Data Set Quadrangle Header Record Elevation Record 1 Elevation Record 2 . . . . . . . . . Last Elevation Record Quadrangle Header Record Elevation Record 1 Elevation Record 2 . . . . . . . . . Last Elevation Record Quadrangle Header Record Elevation Record 1 Elevation Record 2 . . . . . . . . . Last Elevation Record Quad Header with '999999999' in first 12 columns (the nines signal the end of this map data set)If more than one map data set is to be used, the additional sets are simply appended, using the same organizational structure, to the previous map data.
LATM N-S length of the quadrangles, in minutes of arc. LONM E-W length of the quadrangles, in minutes of arc. KCLAT N-S length of the smallest compartment in the quad, in min or sec. LCLON E-W length of the smallest compartment in the quad, in min or sec. KBLOK N-S length of composite block, in min or sec LBLOK E-W length of composite block, in min or sec RMAX Maximum distance to which terrain correction will be carried (km) RMIN Distance at which terrain correction will be started (km) RMED Intermediate distance, at which the conversion to composite blocks occurs (km) RGR Distance beyound which curvaure correction is incorporated into terrain correction calculation (km) KCIRC Set to 0 if piecemeal join to previous terrain correction block is desired; else, set to non-zero if a circular inner join to previous terrain corrections is desired. Typically, KCIRC is set to non-zero for the first (that is, the closest) map set, then set to 0 for succeeding sets. The circular joint permits the calculated correction to be correctly added to "inner-zone" corrections, which are normally carried out to a particular radius. KSEC Set KSEC to 1 if compartment sizes and block sizes are provided in minutes; else, set KSEC to 60 if compartment sizes and block sizes are provided in seconds. Note that quadrangle sizes (LATM, LONM) are always provided in minutes.Record 2; Fortran format: (a12,2i3,i4,i3,i2). This record is the header record for a particular map quadrangle. After reading this record and the associated elevation data for the quadrangle, execution continues by reading another quadrangle, and so forth, until a quadrangle name of all nines (i.e., '999999999999') is read. Note that the elevaton data must be terminated by a record having nines for its quad name; an end-of-file condition will terminate the program prematurely.
DENTQ - 12-character name of the quadrangle. Note that the end of this particular map set is signaled by placing all 9's in columns 1 through 12. LTDQ - Latitude degrees of NW corner of the quad. LTMQ - Latitude minutes of NW corner of the quad. LNDQ - Longitude degrees of NW corner of the quad. LNMQ - Longitude minutes of NW corner of the quad. KFATH - Controls the interpretation of the elevations on the quadrangle. Specifically, A) If KFATH < 31, A.1 All elevations are in feet unless KFATH = 6. If KFATH <> 6, negative elevations imply sea-water compartments. A.2 If KFATH = 6, positive elevations are in feet, negative elevations are in fathoms and imply sea-water compartments. B) If KFATH = 31, positive elevations are in metres, negative elevations are in feet and imply sea-water compartments. C) If KFATH > 31, C.1 If KFATH = 32, same as KFATH = 31 [see (b)]. C.2 If KFATH = 33, both positive and negative elevations are in metres and negative elevations imply sea-water compartments. C.3 If KFATH > 33, C.3.1 If KFATH <> 73, positive elevations are in metres and negative elevations are in fathoms and imply sea-water comp. C.3.2 If KFATH = 73, both positive and negative elevations are in metres and negative elevations imply land compartments.Elevation data; Fortran format (20f5.0). Following the quadrangle header record, the elevation data for the quadrangle appear on subsequent records. The elevation data are arranged in scan-line format, starting with the compartment elevations in the NW corner of the quadrangle. Scan-line format implies that the data are arranged in west-east rows, as illustrated below for a 15-minute quadrangle having compartments of size 30 seconds of arc:
NW Corner | | Row 1 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 3 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 5 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 7 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 9 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 11 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 13 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 15 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 17 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 19 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 21 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 23 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 25 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 27 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 29 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Row 30 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X | | SE Corner
Following the elevation data for this quadrangle, control returns to "Record 2"; that is, another quadrangle header record is read. When a quadrangle name of all nines is read from the quad header, the program attempts to read "Record 1"; that is, the header record for the next map data set, if another data set has been requested.
Example File. An example (145 Kb) of a map data file is available that may help clarify the organization of the file.
Remark. A sometimes-annoying feature of the terrain correction program is that the number of map data sets to be used to terrain-correct the gravity data is supplied in the gravity data input file (it is the first variable read from that file), rather than in the map data input file. This can lead to easy mistakes by the user, when the number of map ata sets is entered incorrectly in the gravity data input file.
outertc in=inputfile list=listfile map=mapfile out=mapfile
where inputfile is the input file [contains the gravity data], listfile is the name of the listing file that will be created, and mapfile is the name of the map data file used for outer-zone TCs. An additional file called gravcorr.dat is created by the program. This last file contains the results of the gravity reduction and the terrain correction calculations (if requested). If no map data file is placed on the command-line, no terrain corrections will be calculated; the gravity data will have standard reductions applied, minus any terrain corrections.
The only file required for input is the gravity data input file. If no listing file name is supplied, the default name of gravlist.lst will be used.