Calculates horizontal distance traveled by ray over given
depth range.
Usage
CalcXPsum(p, v, z, zmin, zmax, novertex)
Arguments
p
Ray parameter (s/deg)
v
Velocity vector (km/s)
z
Depth vector (km)
zmin
Minimum depth (km)
zmax
Maximum depth (km)
novertex
Flag to prevent consideration of vertices
Value
Horizontal travel distance between zmin and zmax (km, flat earth).
Details
All depths and velocities are flat earth coordinates. This
routine is not vectorized; vectorization is a high priority for future
releases. This routine is subordinate to FindDist4p.