Learn R Programming

TauP.R (version 1.5)

CalcXPsum: Horizontal Distance along Ray Leg

Description

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.

Examples

Run this code
# NOT RUN {
### Not a user routine--subordinate to FindDist4p.
# }

Run the code above in your browser using DataLab