Learn R Programming

TauP.R (version 1.5)

FindTime4p: Travel time for Ray Parameter

Description

Calculates a travel time given a phase, focal depth, model, and ray parameter.

Usage

FindTime4p(phase, h, p, model, anglemode = "rayparm", takeoff = NULL)

Arguments

phase

Arrival phase (e.g. 'P', 'SKS')

h

Focal depth (km)

p

Ray Parameter (s/deg)

model

Planet model

anglemode

One of 'rayparm' (if the input ray parameter is to be used) or 'angle' (if the input takeoff angle is to be used)

takeoff

Takeoff angle (deg)

Value

tt

Phase travel time (s)

vdep

Vertex radius (km)

resp

Ray parameter (s/deg)

Details

'takeoff' and 'p' must be scalars--unlike many of the other functions provided, FindTime4p is not vectorized.

See Also

Traveltime, FindDist4pn

Examples

Run this code
# NOT RUN {
data(model)

FindTime4p('P', 100, 6, model)

FindTime4p('P', 100, NaN, model, anglemode = 'angle', 40)

# }

Run the code above in your browser using DataLab