obspy.taup.slowness_model.SlownessModel¶
- class SlownessModel(vMod, minDeltaP=0.1, maxDeltaP=11, maxDepthInterval=115, maxRangeInterval=0.04363323129985824, maxInterpError=0.05, allowInnerCoreS=True, slowness_tolerance=1e-16, skip_model_creation=False)[source]¶
Bases: future.types.newobject.newobject
Storage and methods for generating slowness-depth pairs.
Attributes
DEBUG bool(x) -> bool DEFAULT_SLOWNESS_TOLERANCE float(x) -> floating point number PLayers PWAVE bool(x) -> bool SLayers SWAVE bool(x) -> bool __dict__ __doc__ unicode(string [, encoding[, errors]]) -> object __module__ str(object) -> string __weakref__ list of weak references to the object (if defined) criticalDepths fluidLayerDepths list() -> new empty list highSlownessLayerDepthsP list() -> new empty list highSlownessLayerDepthsS list() -> new empty list radiusOfEarth float(x) -> floating point number Public Methods
addSlowness Add a ray parameter to the slowness sampling for the given wave type. approxDistance Approximate distance for ray turning at the bottom of a layer. coarseSample Create a coarse slowness sampling of the velocity model (vMod). createSample Create slowness-depth layers from a velocity model. depthInFluid Determine if the given depth is contained within a fluid zone. depthInHighSlowness Determine if depth and slowness are within a high slowness zone. depthIncCheck Check that no slowness layer is too thick. distanceCheck Check that no slowness layer is too wide or undersampled. findCriticalPoints Find all critical points within a velocity model. findDepth_from_depths Find depth corresponding to a slowness between two given depths. findDepth_from_layers Find depth corresponding to a slowness p between two velocity layers. fixCriticalPoints Reset the slowness layers that correspond to critical points. getMinRayParam Find minimum slowness, turning or reflected, at or above a depth. getMinTurnRayParam Find minimum slowness, turning but not reflected, at or above a depth. getNumLayers Number of slowness layers. getSlownessLayer Return the SlownessLayer of the requested wave type. interpolate Interpolate slowness to depth within a layer. layerNumberAbove Find the index of the slowness layer that contains the given depth. layerNumberBelow Find the index of the slowness layer that contains the given depth. layerTimeDist Calculate time and distance for a ray passing through a layer. next ray_paramIncCheck Check that no slowness layer’s ray parameter interval is too large. splitLayer Split a slowness layer into two slowness layers. toSlowness Convert velocity at some depth to slowness. validate Perform consistency check on the slowness model. Private Methods
_fixOtherLayers Fix other wave layers when a split is made. Special Methods
__init__ __long__ __native__ Hook for the future.utils.native() function __nonzero__ __str__ __unicode__