Learn R Programming

TauP.R (version 1.5)

CalcTP: Calculate Layer Traveltime

Description

Calculates the traveltime through a single layer.

Usage

CalcTP(p, v, z, zmin, zmax, novertex = 0)

Arguments

p

Ray Parameter (s/deg)

v

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

z

Depth at top and bottom of layer (km)

zmin

Minimum allowed depth in layer (km)

zmax

Maxiumum allowed depth in layer (km)

novertex

Optional: if TRUE, vertex cannot be found in layer

Value

Traveltime between zmin and zmax (s).

Details

Regrettably, this routine is not vectorized. This will be corrected in later versions. This is a subordinate routine to CalcTPsum.

Examples

Run this code
# NOT RUN {
### Can only be called from CalcTPsum
# }

Run the code above in your browser using DataLab