contents

calc_error

Called by:  main

Includes:   iscloc.h

Input arguments:
Pointer to solution structure.
Pointer to array of phase structures.

Calls: Functions get_fact and get_fact2 from this file.

Structure members updated:  nass, ndef, nsta, ndefsta, sdobs, mindist, maxdist, azimgap, error[], majax, minax, and theta

Return:   0/1 for success/failure.

This function calculates the standard errors and error ellipse for a final solution using the covariance matrix stored by function solve.  It also calculates the final azimuthal gap and the number of stations and phases that were used in the solution.



There are 12 members of the solution structure used to store errors and other information for the final solution.