generate_table namefile
where namefile is the name of a file which has a list of station names to be extracted and processed. The format of the file is 1 name per line; no blank lines, no comments.
OVERVEW
This is a shell script, designed to use bash(1) under unix. It should be possible to port to other systems, with varying degrees of difficult. Basically, this script calls cat.py, catdata.py, make_table.py, calc_relative.py, and get_stations.py with appropriate arguments.
The script uses 2 subdirectories, which is creates if it can't find them: processed for the normal processed files, and plot for relative gravity files suitable for plotting. In both places, the data is stored in files named according to the station, with a format of "date id G S" where S is the standard deviation of the measurment G. The plot files have been rescaled so that the first record is set to 0.0 relative gravity and all further readings are relative to that.
The script also checks for a file named rename_stations. If found, it is used as the map to rename stations in the input data before processing. The format is simple: "old_name new_name" in the exact case of the data. The matching is case-sensitive. The renaming uses rename.py.
Two files are generated by the script: gravityTable and relativeTable. gravityTable is a table of the actual values for each station at each time. relativeTable is a table of relative gravity change with time for each station.