contents

get_data

Called by:   main for each event that is requested with an evid on the instruction line.

Includes:   iscloc.h

Input arguments:
Pointer to event structure.
Pointer to the address of the hypocentre structure array.
Pointer to the address of the phase structure array.

Calls:  get_event, get_hyp, and get_pha

Structure members updated:  none.

Return:   0/1 for success/failure.

This function calls get_event to find out how many hypocentres and phases are present in the database for this event and the hypid of the hypocentre that all ISC associations will have been made with (prime).  It then allocates an appropriate amount of memory for arrays of hypocentre and phase structures and calls get_hyp and get_pha to select the data from the database into these arrays