contents

correct_ttime

Called by:   read_ttime for each phase after getting travel time.

Includes:   iscloc.h

External:
Threshold for applying crustal correction CRUST_CORR_MIN_DELTA.
crust_corr_on and elev_corr_on set in read_config
Input arguments:
Pointer to solution structure.
Pointer to phase structure.

Calls:
calc_geoid_corr
calc_elev_corr if elev_corr_on = 1 and crust_corr_on = 0
calc_crust_corr if crust_corr_on = 1

Structure members updated:   None.

Return:   Travel time correction in seconds.

Calls functions to make corrections to the travel time for a particular phase.  In all cases will make a correction for the true shape of the Earth by calling calc_geoid_corr.  Whether any other correction is made depends on the value of two configuration values read from config.txt by read_config.

If crust_corr_on is set then function calc_crust_corr is called which replaces the effect of a constant crust from the earth model with the effect of a laterally varying crust. calc_crust_corr will also make a correction for station elevation using the appropriate crustal velocity if it is provided with an elevation value and so this function only sends such an elevation if elev_corr_on is also set.

If crust_corr_on is not set but elev_corr_on is set then function calc_elev_corr is called to correct for the elevation of the station using the upper crustal velocity from the earth model in use.