Learn R Programming

TauP.R (version 1.5)

MakePscan: Find Distance of p Function

Description

Constructs a distance for ray parameter function for the range of relevant ray parameters for a given phase.

Usage

MakePscan(phase, h, imodel)

Arguments

phase

Earthquake wave arrival phase (e.g. 'P', 'SKKS')

h

Focal depth (km)

imodel

Planet model returned by ImproveModel

Value

List with following elements:

phase

Arrival phase

h

Focal depth (km)

angles

Takeoff angles (degrees)

p

Corresponding ray parameters (s/deg)

dist

Corresponding epicentral distances (degrees)

vp

P wave velocity at focus

vs

S wave velocity at focus

starts

Starting indices of intervals ( 1:(length(p) - 1) )

ends

Ending indices of intervals ( 2:length(p) )

Examples

Run this code
# NOT RUN {
data(model)

phase = 'P'
h = 100
imodel = ImproveModel(model)$newmodel

MakePscan(phase, h, imodel)

# }

Run the code above in your browser using DataLab