Calculates the traveltime through a single layer.
CalcTP(p, v, z, zmin, zmax, novertex = 0)
Ray Parameter (s/deg)
Velocities at top and bottom of layer (km/s)
Depth at top and bottom of layer (km)
Minimum allowed depth in layer (km)
Maxiumum allowed depth in layer (km)
Optional: if TRUE, vertex cannot be found in layer
Traveltime between zmin and zmax (s).
Regrettably, this routine is not vectorized. This will be corrected in later versions. This is a subordinate routine to CalcTPsum.
# NOT RUN {
### Can only be called from CalcTPsum
# }
Run the code above in your browser using DataLab