R/TransformS2Fz.R

Defines functions TransformS2Fz

Documented in TransformS2Fz

TransformS2Fz <-
function(vs,zs,rp)
{
r=rp-zs

indies=which(r==0)
r[indies]=-1

zf=rp*log(rp/r+0i)
zf[indies]=abs(zf[indies])*Inf  
zf=Re(zf) 

vf=vs/r
vf=vf*rp
vf[indies]=vf[indies]*Inf 

return(list(vf=vf,zf=zf))

}

Try the TauP.R package in your browser

Any scripts or data that you put into this service are public.

TauP.R documentation built on May 2, 2019, 3:25 a.m.