All Packages Class Hierarchy This Package Previous Next Index
Class edu.sc.seis.TauP.SlownessLayer
edu.sc.seis.TauP.SlownessLayer
- public class SlownessLayer
Class to hold a single slowness layer sample.
-
botDepth
- Depth at the bottom of the layer.
-
botP
- Slowness at the bottom of the layer.
-
topDepth
- Depth at the top of the layer.
-
topP
- Slowness at the top of the layer.
-
SlownessLayer(double, double, double, double)
- top slowness, top depth, bottom slowness, bottom depth
-
SlownessLayer(VelocityLayer, boolean)
- Compute the slowness layer from a velocity layer.
-
SlownessLayer(VelocityLayer, boolean, double)
- Compute the slowness layer from a velocity layer.
-
SlownessLayer(VelocityLayer, boolean, double, boolean)
- Compute the slowness layer from a velocity layer.
-
bullenDepthFor(double, double)
- Finds the depth for a ray parameter within this layer.
-
bullenRadialSlowness(double, double)
- Calculates the time and distance (in radians) increments accumulated
by a ray of spherical ray parameter p when passing through this layer.
-
clone()
-
-
evaluateAt_bullen(double, double)
- Finds the slowness at the given depth.
-
isZeroThickness()
- Is the layer a zero thickness layer, ie a total reflection?
-
toString()
- returns a String description of this SlownessLayer.
-
validate()
-
topP
public double topP
- Slowness at the top of the layer.
botP
public double botP
- Slowness at the bottom of the layer.
topDepth
public double topDepth
- Depth at the top of the layer.
botDepth
public double botDepth
- Depth at the bottom of the layer.
SlownessLayer
public SlownessLayer(double topP,
double topDepth,
double botP,
double botDepth)
- top slowness, top depth, bottom slowness, bottom depth
SlownessLayer
public SlownessLayer(VelocityLayer vLayer,
boolean spherical,
double radiusOfEarth,
boolean isPWave)
- Compute the slowness layer from a velocity layer.
SlownessLayer
public SlownessLayer(VelocityLayer vLayer,
boolean isPWave,
double radiusOfEarth)
- Compute the slowness layer from a velocity layer.
Since radiusOfEarth is given we assume a spherical model.
- Throws: NoSuchMatPropException
- occurs if the wavetype is
not recognized.
SlownessLayer
public SlownessLayer(VelocityLayer vLayer,
boolean isPWave)
- Compute the slowness layer from a velocity layer. Since
radiusOfEarth is not given we assume a flat model.
- Throws: NoSuchMatPropException
- occurs if the wavetype is
not recognized.
isZeroThickness
public boolean isZeroThickness()
- Is the layer a zero thickness layer, ie a total reflection?
evaluateAt_bullen
public double evaluateAt_bullen(double depth,
double radiusOfEarth) throws SlownessModelException
- Finds the slowness at the given depth. radiusOfEarth is needed
as a slowness layer doesn't have access to the slowness model.
Note that this method assumes
a Bullen type of slowness interpolation, ie p(r) = a*r^b. This
will produce results consistent with a tau model that uses this
interpolant, but it may differ slightly from going directly to
the velocity model. Also, if the tau model is generated using
another interpolant, linear for instance, then the result may
not be consistent with the tau model.
bullenRadialSlowness
public TimeDist bullenRadialSlowness(double p,
double radiusOfEarth) throws SlownessModelException
- Calculates the time and distance (in radians) increments accumulated
by a ray of spherical ray parameter p when passing through this layer.
Note that this gives 1/2 of the true range and time increments since
there will be both an up going and a downgoing path.
Here we use the Mohorovicic or Bullen law p=A*r^B
- Throws: SlownessModelException
- occurs if the calculated
distance or time increments are negative or NaN, this indicates a
bug in the code (and hopefully will never happen).
bullenDepthFor
public double bullenDepthFor(double rayParam,
double radiusOfEarth) throws SlownessModelException
- Finds the depth for a ray parameter within this layer. Uses
a Bullen interpolant, Ar^B.
Special case for botP == 0 or botDepth == radiusOfEarth as
these cause div by 0, use linear interpolation in this
case.
clone
public Object clone()
toString
public String toString()
- returns a String description of this SlownessLayer.
validate
public boolean validate() throws SlownessModelException
All Packages Class Hierarchy This Package Previous Next Index