make_parm_file


Overview

make_parm_file takes several plain-text user-created files and creates a formatted parameter file for use in reduce. The file can be edited with station_info. make_parm_file is a more convenient way to create a parameter file from scratch, when the station positions and names are known.

Usage

make_parm_file NAME_FILE POSITION_FILE [SKIP_FILE] OUTPUT_FILE

where NAME_FILE is the name of the file which has station id to name information, POSITION_FILE has the station position and elevation change (optional) data, and SKIP_FILE has a list of station ids to be skipped in the reduction. File formats are specified below.

SKIP_FILE is optional; if none is specified, no stations will be marked for removal.

File Formats

Description

make_parm_file is meant to speed the rather tedious process of creating the parameter file for use in reduce. The program uses the station id to name mapping in NAME_FILE to match with the information in the position and skip files, and to compute repeat information. All stations with the same name are assumed to be repeated occupations of the same station. If this is not true, edit the resulting file by hand or change the station names.

The position and skip information is used to create the respective parts of the parameter file. The position information is stored by name, and all stations with the same name are given the same position and elevation change. Again, if this is not desired, edit the resulting parameter file by hand (using station_info or a text editor) or change the names.

The skip information can be in two forms, which can be mixed freely in the skip file - a station id, or a station name. Station ids are copied to the parameter file verbatim, which normally results in a single station being marked for removal from the reduction. Any entry that matches a station name, rather than an id, is expanded to be a list of all station ids with that name. Note that the algorithm actually does a comparison to the names, and if no match is found, the entry is passed on verbatim - there is no checking that the entries in the skip file are valid ids.


Copyright © 2000, Paul Gettings