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.
- error - array of standard errors for solution. Set in function calc_error.
- majax - major axis of error ellipse (km). Set in function calc_error.
- minax - minor axis of error ellipse (km). Set in function calc_error.
- theta - azimuth of error ellipse (degrees). Set in function calc_error.
- sdobs - measure of standard deviation of weighted residuals. Set in function calc_error.
- mindist - distance to closest station (degrees). Set in function calc_error.
- maxdist - distance to furthest station (degrees). Set in function calc_error.
- azimgap - maximum azimuthal gap between stations (degrees). Set in function calc_error.
- nsta - number of stations with associated phases. Set in function calc_error.
- ndefsta - number of stations with defining phases. Set in function calc_error.
- nass - number of associated phases. Set in function calc_error.
- ndef - number of defining phases. Set in function calc_error.