contents

get_pha

Called by:  get_data

Includes:   iscloc.h

Input arguments:
Pointer to event structure.
Array of phase structures.

Calls: sql_error in oracle_funcs

Structure members updated:
hypid, phid, rdid, pref_rd, time, init, rep_phase, net, sta, slow, azim, comp, sp_fm, detchar, sta_lat, sta_lon, sta_elev, dircos, numamps and a in phase structures.

Return:   0/1 for success/failure.

Written in ORACLE Pro*C this function needs to be precompiled to get C code.

This function selects data from the PHASE, ASSOCIATION and AMPLITUDE tables of the ISC database using the prime hypid stored in the event structure and assigns values to members of the phase