put_hyp
Called by: put_data
Includes: iscloc.h
External: repid and out_agency set in read_config
.
Input arguments:
Pointer to event
structure.
Pointer to solution
structure.
Calls:
sql_error
in oracle_funcs
ORACLE package rn
Structure members updated: none.
Return: 0/1 for success/failure.
Written in ORACLE Pro*C this function needs to be precompiled to get C code.
This function inserts a row into the HYPOCENTER table of the ISC database
with the solution found by the iscloc program. It will also add rows
to the NETMAG table for any magnitudes calculated for this solution. This
new hypocentre and magnitudes will have reporter and author set to repid
and out_agency respectively, two variables assigned in the configuration
file.