write_isf_event
Called by: main for each event located if isf_outfile
given in config.txt
.
Includes: iscloc.h, isf_bul.h
External: repid and out_agency set in read_config
Input arguments:
File pointer to output file.
Pointer to event
structure.
Pointer to solution
structure.
Array of hypocentre
structures.
Array of phase
structures.
Calls:
Function split_time
from utils
Functions from isf_writ.
Structure members updated: none.
Return: 0/1 for success/failure.
This function uses a set of functions written separately from isc_loc (isf_writ)
to write an event with a new location in ISF bulletin format. The output
file is opened and closed in main so that subsequent events can be easily
written to the same file. The hypocentres input to the program for
possible use as starting points are included with the new solution and this
is the only use of several members of the hypocentre structure - other agency's
hypocentral errors, for example, are simply input and output again.