contents

rank_hyp

Called by:   main once for each event.

Includes:   iscloc.h

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

Calls:  Function calc_gap

Structure members updated:  rank in hypocentre structure.

Return:   0/1 for success/failure.

Most events relocated at the ISC will have been reported by more than one agency, each of which will have sent a hypocentre and, possibly associated phase picks.  Of these reported hypocentres it is important to use the better ones first as starting points for the ISC solution.  The first hypocentre to be used as starting point can be set on the instruction line using the format seed=AGENCY, otherwise the first seed will be chosen automatically. In any case, the second and subsequent starting points (for the case when no convergence is reached with the first) will be chosen automatically.

The criteria used to decide the order in which hypocentres will be used are the azimuthal gap and the number of contributing stations/arrivals.  If the closest station contributing to a solution is less than 5 degrees away then this is also considered to be in that hypocentre's favour.  Each hypocentre is scored with the better hypocentres having the highest scores.  The exact scoring method was developed so that hypocentres from test events ended up in the