Learn R Programming

TauP.R (version 1.0)

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:
  • phaseArrival phase
  • hFocal depth (km)
  • anglesTakeoff angles (degrees)
  • pCorresponding ray parameters (s/deg)
  • distCorresponding epicentral distances (degrees)
  • vpP wave velocity at focus
  • vsS wave velocity at focus
  • startsStarting indices of intervals ( 1:(length(p) - 1) )
  • endsEnding indices of intervals ( 2:length(p) )

Examples

Run this code
data(model)

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

MakePscan(phase, h, imodel)

Run the code above in your browser using DataLab