|
||||||||
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
public class 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, criticalDepths, DEBUG, DEFAULT_SLOWNESS_TOLERANCE, fluidLayerDepths, highSlownessLayerDepthsP, highSlownessLayerDepthsS, maxDeltaP, maxDepthInterval, maxInterpError, maxRangeInterval, minDeltaP, PLayers, PWAVE, radiusOfEarth, SLayers, slownessTolerance, SWAVE, vectorLength, verbose, vMod |
Constructor Summary | |
---|---|
SphericalSModel(double radiusOfEarth,
VelocityModel vMod,
java.util.List<CriticalDepth> criticalDepths,
java.util.List<DepthRange> highSlownessLayerDepthsP,
java.util.List<DepthRange> highSlownessLayerDepthsS,
java.util.List<DepthRange> fluidLayerDepths,
java.util.List<SlownessLayer> pLayers,
java.util.List<SlownessLayer> sLayers,
double minDeltaP,
double maxDeltaP,
double maxDepthInterval,
double maxRangeInterval,
double maxInterpError,
boolean allowInnerCoreS,
double slownessTolerance)
|
|
SphericalSModel(VelocityModel vMod)
|
|
SphericalSModel(VelocityModel vMod,
double minDeltaP,
double maxDeltaP,
double maxDepthInterval,
double maxRangeInterval,
double maxInterpError,
boolean allowInnerCoreS,
double slownessTolerance)
|
Method Summary | |
---|---|
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. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SphericalSModel(VelocityModel vMod) throws NoSuchMatPropException, NoSuchLayerException, SlownessModelException
NoSuchMatPropException
NoSuchLayerException
SlownessModelException
public SphericalSModel(VelocityModel vMod, double minDeltaP, double maxDeltaP, double maxDepthInterval, double maxRangeInterval, double maxInterpError, boolean allowInnerCoreS, double slownessTolerance) throws NoSuchMatPropException, NoSuchLayerException, SlownessModelException
NoSuchMatPropException
NoSuchLayerException
SlownessModelException
public SphericalSModel(double radiusOfEarth, VelocityModel vMod, java.util.List<CriticalDepth> criticalDepths, java.util.List<DepthRange> highSlownessLayerDepthsP, java.util.List<DepthRange> highSlownessLayerDepthsS, java.util.List<DepthRange> fluidLayerDepths, java.util.List<SlownessLayer> pLayers, java.util.List<SlownessLayer> sLayers, double minDeltaP, double maxDeltaP, double maxDepthInterval, double maxRangeInterval, double maxInterpError, boolean allowInnerCoreS, double slownessTolerance)
Method Detail |
---|
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.String toString()
toString
in class SlownessModel
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |