Learn R Programming

TauP.R (version 1.0)

ConvP2Vdepthinv: Vertex Depth and Ray Parameter

Description

Calculate vertex depth given ray parameter or vice-versa.

Usage

ConvP2Vdepth(p, v, r, h, rp, discons)
ConvP2Vdepthinv(rpd, v, r)

Arguments

rpd
Ray vertex radius (km)
v
Planet velocity structure (km/s)
r
Radii corresponding to v
p
Ray parameter (s/deg)
h
Focal radius (km)
rp
Planet radius (km)
discons
Vector of discontinuity radii (km, from FindDiscon)

Value

  • ConvP2Vdepth: Radius of ray vertex (km)

    ConvP2Vdepthinv: Ray parameter (s/deg)

Details

Note that these functions use radii, not depths, so h would be 6371 (or whatever planet radius you're using) - focal depth.

Examples

Run this code
data(model)

ConvP2Vdepth(7, model$vp, 6371 - model$z, 6361, 6371, FindDiscon(model))

ConvP2Vdepthinv(4881.467, model$vp, 6371 - model$z)

Run the code above in your browser using DataLab