Learn R Programming

TauP.R (version 1.5)

CalcXP: Calculate Horizontal Travel

Description

Calculates horizontal travel within a single layer.

Usage

CalcXP(p, v, z, zmin, zmax, novertex)

Arguments

p

Ray Parameter (s/deg)

v

Velocity at top and bottom of layer (km/s)

z

Depth at top and bottom of layer (km)

zmin

Minimum allowed depth (km)

zmax

Maximum allowed depth (km)

novertex

Block handling of vertices if TRUE.

Value

Horizontal distance traveled in layer in flat earth coordinates.

Details

All depths and velocities must be flat earth transformed. This is a subordinate routine for CalcXPsum. Regrettably, this is not vectorized; this will be corrected in later editions.

Examples

Run this code
# NOT RUN {
#### Not a user routine: subordinate to CalcXPsum.
# }

Run the code above in your browser using DataLab