get_stations.py


USAGE

get_stations.py namefile datafile outputdir

where namefile is the name of a file that has the stations to extract from the file datafile. It is assumed that datafile is the result of concatenating output files from reduce.py. outputdir is the name of the directory to hold the resulting files.

OVERVIEW

get_stations.py scans through the data file, looking for the output records for a station in the name file. When it finds one, it puts the important information of the record (date, name, gravity, standard deviation) into a file in the output directory. This file is named after the station.

This program is normally called from inside generate_table, where it breaks apart the massive data file from all available data reductions into per-station files.