read_stafile
Called by: read_isf_event
Includes: iscloc.h, isf_bul.h
External:
Definition of sta_rec structure to hold station location information.
isf_stafile
set in read_config
Input arguments: Array of sta_rec structures.
Calls: read_sta from isf_sta.
Structure members updated: net, sta, lat, lon, and elev in sta_rec structures.
Return: number of stations in array of sta_rec structures.
If data is being read from file then it must be assumed that there is no
database available. This means that station locations must also be
read in from file. This function reads a file in ISF station data_type
format and stores the station list in memory. The name of the file
to be read must be given in the configuration file and is stored as external
variable isf_stafile
by read_config. The file is read one line at a time and parsed by function read_sta
from isf_sta, part of a collection of ISF utilities written separately from
location.