All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.sc.seis.TauP.SphericalSModel

edu.sc.seis.TauP.SlownessModel
   |
   +----edu.sc.seis.TauP.SphericalSModel

public class SphericalSModel
extends SlownessModel
This class provides storage and methods for generating slowness-depth pairs in a spherical earth model.


Constructor Index

 o SphericalSModel()

Method Index

 o clone()
 o interpolate(double, double, double, double)
Returns the depth for a slowness given a velocity gradient.
 o layerTimeDist(double, int, boolean)
Calculates the time and distance increments accumulated by a ray of spherical ray parameter p when passing through layer layerNum.
 o main(String[])
Just for debugging purposes.
 o toSlowness(double, double)
Returns the slowness for a velocity at a depth.
 o toSlownessLayer(VelocityLayer, boolean)
Converts a velocity layer into a slowness layer.
 o toString()
 o toVelocity(double, double)
Returns the velocity for a slowness at a depth.
 o validate()
Performs consistency check on the velocity model.

Constructors

 o SphericalSModel
 public SphericalSModel()

Methods

 o main
 public static void main(String args[])
Just for debugging purposes.

 o toSlowness
 public double toSlowness(double velocity,
                          double depth) throws SlownessModelException
Returns the slowness for a velocity at a depth.

Throws: SlownessModelException
if velocity is zero.
Overrides:
toSlowness in class SlownessModel
 o toVelocity
 public double toVelocity(double slowness,
                          double depth) throws SlownessModelException
Returns the velocity for a slowness at a depth.

Throws: SlownessModelException
if slowness is zero.
Overrides:
toVelocity in class SlownessModel
 o toSlownessLayer
 public SlownessLayer toSlownessLayer(VelocityLayer vLayer,
                                      boolean isPWave) throws SlownessModelException
Converts a velocity layer into a slowness layer.

Throws: SlownessModelException
if velocity layer is malformed.
Overrides:
toSlownessLayer in class SlownessModel
 o interpolate
 public double interpolate(double p,
                           double topVelocity,
                           double topDepth,
                           double slope) throws SlownessModelException
Returns the depth for a slowness given a velocity gradient.

Throws: SlownessModelException
if the velocity gradient exactly balances the spherical decrease in slowness.
Overrides:
interpolate in class SlownessModel
 o layerTimeDist
 public TimeDist layerTimeDist(double sphericalRayParam,
                               int layerNum,
                               boolean isPWave) throws SlownessModelException
Calculates the time and distance increments accumulated by a ray of spherical ray parameter p when passing through layer layerNum. for the easy cases of zero ray parameter, the center of the earth, and constant velocity layers. 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.

Throws: SlownessModelException
occurs if the ray with the given spherical ray parameter cannot propagate within this layer, or if the ray turns within this layer but not at the bottom.
Overrides:
layerTimeDist in class SlownessModel
 o validate
 public boolean validate() throws SlownessModelException
Performs consistency check on the velocity model.

Returns:
true if successful, throws SlownessModelException otherwise.
Throws: SlownessModelException
if any check fails
Overrides:
validate in class SlownessModel
 o clone
 public Object clone()
Overrides:
clone in class SlownessModel
 o toString
 public String toString()
Overrides:
toString in class SlownessModel

All Packages  Class Hierarchy  This Package  Previous  Next  Index