|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.TauP.SlownessModel
edu.sc.seis.TauP.SphericalSModel
This class provides storage and methods for generating slowness-depth pairs in a spherical earth model.
Field Summary |
Fields inherited from class edu.sc.seis.TauP.SlownessModel |
allowInnerCoreS, criticalDepthVector, DEBUG, fluidLayerDepths, highSlownessLayerDepthsP, highSlownessLayerDepthsS, maxDeltaP, maxDepthInterval, maxInterpError, maxRangeInterval, minDeltaP, PLayers, PWAVE, radiusOfEarth, SLayers, slownessTolerance, SWAVE, vectorLength, verbose, vMod |
Constructor Summary | |
SphericalSModel()
|
Method Summary | |
java.lang.Object |
clone()
|
double |
interpolate(double p,
double topVelocity,
double topDepth,
double slope)
Returns the depth for a slowness given a velocity gradient. |
TimeDist |
layerTimeDist(double sphericalRayParam,
int layerNum,
boolean isPWave)
Calculates the time and distance increments accumulated by a ray of spherical ray parameter p when passing through layer layerNum. |
static void |
main(java.lang.String[] args)
Just for debugging purposes. |
double |
toSlowness(double velocity,
double depth)
Returns the slowness for a velocity at a depth. |
SlownessLayer |
toSlownessLayer(VelocityLayer vLayer,
boolean isPWave)
Converts a velocity layer into a slowness layer. |
java.lang.String |
toString()
|
double |
toVelocity(double slowness,
double depth)
Returns the velocity for a slowness at a depth. |
boolean |
validate()
Performs consistency check on the velocity model. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SphericalSModel()
Method Detail |
public static void main(java.lang.String[] args)
public double toSlowness(double velocity, double depth) throws SlownessModelException
toSlowness
in class SlownessModel
SlownessModelException
- if velocity is zero.public double toVelocity(double slowness, double depth) throws SlownessModelException
toVelocity
in class SlownessModel
SlownessModelException
- if slowness is zero.public SlownessLayer toSlownessLayer(VelocityLayer vLayer, boolean isPWave) throws SlownessModelException
toSlownessLayer
in class SlownessModel
SlownessModelException
- if velocity layer is malformed.public double interpolate(double p, double topVelocity, double topDepth, double slope) throws SlownessModelException
interpolate
in class SlownessModel
SlownessModelException
- if the velocity gradient
exactly balances the spherical decrease in slowness.public TimeDist layerTimeDist(double sphericalRayParam, int layerNum, boolean isPWave) throws SlownessModelException
layerTimeDist
in class SlownessModel
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.public boolean validate() throws SlownessModelException
validate
in class SlownessModel
SlownessModelException
- if any check failspublic java.lang.Object clone()
clone
in class SlownessModel
public java.lang.String toString()
toString
in class SlownessModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |