Package edu.sc.seis.TauP
Class FailedSeismicPhase
- java.lang.Object
-
- edu.sc.seis.TauP.SimpleSeismicPhase
-
- edu.sc.seis.TauP.FailedSeismicPhase
-
- All Implemented Interfaces:
SeismicPhase
,java.io.Serializable
,java.lang.Cloneable
public class FailedSeismicPhase extends SimpleSeismicPhase
Represents a seismic phase that doesn't exist in the model, either malformed or not compatible with the broad structure of the model.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.sc.seis.TauP.SimpleSeismicPhase
DEBUG, dist, maxDistance, maxRayParam, maxRayParamIndex, maxRecursion, minDistance, minRayParam, minRayParamIndex, name, puristName, PWAVE, rayParams, receiverDepth, refineDistToleranceRadian, sourceDepth, SWAVE, time, tMod, verbose
-
-
Constructor Summary
Constructors Constructor Description FailedSeismicPhase(ProtoSeismicPhase proto)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calcEnergyReflTranPSV(Arrival arrival)
double
calcEnergyReflTranSH(Arrival arrival)
java.util.List<TimeDist>
calcPierceTimeDist(Arrival arrival)
java.util.List<ArrivalPathSegment>
calcSegmentPaths(Arrival currArrival)
Arrival
createArrivalAtIndex(int rayNum)
Creates an Arrival for a sampled ray parameter from the model.java.lang.String
describe()
java.lang.String
describeShort()
static FailedSeismicPhase
failForReason(java.lang.String phaseName, TauModel tMod, double receiverDepth, java.lang.String failReason)
int
getNumRays()
boolean
hasArrivals()
boolean
phasesExistsInModel()
Arrival
shootRay(double rayParam)
-
Methods inherited from class edu.sc.seis.TauP.SimpleSeismicPhase
calcIncidentAngle, calcIncidentAngleDegree, calcRayParamForTakeoffAngle, calcSegmentPaths, calcTakeoffAngle, calcTakeoffAngleDegree, calcTimeExactDistance, calcTstar, countFlatLegs, densityAtReceiver, densityAtSource, describeJson, dump, finalSegmentIsPWave, getDist, getDist, getEarliestArrival, getFinalPhaseSegment, getInitialPhaseSegment, getMaxDistance, getMaxDistanceDeg, getMaxRayParam, getMaxRayParamIndex, getMaxTime, getMinDistance, getMinDistanceDeg, getMinRayParam, getMinRayParamIndex, getMinTime, getName, getPhaseSegments, getProto, getPuristName, getRayParams, getRayParams, getReceiverDepth, getSourceDepth, getTau, getTau, getTauModel, getTime, getTime, gettMod, isAllPWave, isAllSWave, refineArrival, refineArrival, removeDuplicatePathPoints, sourceSegmentIsPWave, toString, velocityAtReceiver, velocityAtSource
-
-
-
-
Constructor Detail
-
FailedSeismicPhase
public FailedSeismicPhase(ProtoSeismicPhase proto)
-
-
Method Detail
-
failForReason
public static FailedSeismicPhase failForReason(java.lang.String phaseName, TauModel tMod, double receiverDepth, java.lang.String failReason)
-
phasesExistsInModel
public boolean phasesExistsInModel()
- Specified by:
phasesExistsInModel
in interfaceSeismicPhase
- Overrides:
phasesExistsInModel
in classSimpleSeismicPhase
-
hasArrivals
public boolean hasArrivals()
- Specified by:
hasArrivals
in interfaceSeismicPhase
- Overrides:
hasArrivals
in classSimpleSeismicPhase
-
createArrivalAtIndex
public Arrival createArrivalAtIndex(int rayNum)
Creates an Arrival for a sampled ray parameter from the model. No interpolation between rays as this is a sample.- Specified by:
createArrivalAtIndex
in interfaceSeismicPhase
- Overrides:
createArrivalAtIndex
in classSimpleSeismicPhase
- Parameters:
rayNum
- index in ray parameters
-
shootRay
public Arrival shootRay(double rayParam) throws SlownessModelException, NoSuchLayerException
- Specified by:
shootRay
in interfaceSeismicPhase
- Overrides:
shootRay
in classSimpleSeismicPhase
- Throws:
SlownessModelException
NoSuchLayerException
-
calcSegmentPaths
public java.util.List<ArrivalPathSegment> calcSegmentPaths(Arrival currArrival)
- Specified by:
calcSegmentPaths
in interfaceSeismicPhase
- Overrides:
calcSegmentPaths
in classSimpleSeismicPhase
-
describe
public java.lang.String describe()
- Specified by:
describe
in interfaceSeismicPhase
- Overrides:
describe
in classSimpleSeismicPhase
-
describeShort
public java.lang.String describeShort()
- Specified by:
describeShort
in interfaceSeismicPhase
- Overrides:
describeShort
in classSimpleSeismicPhase
-
calcEnergyReflTranPSV
public double calcEnergyReflTranPSV(Arrival arrival) throws VelocityModelException, SlownessModelException
- Specified by:
calcEnergyReflTranPSV
in interfaceSeismicPhase
- Overrides:
calcEnergyReflTranPSV
in classSimpleSeismicPhase
- Throws:
VelocityModelException
SlownessModelException
-
calcEnergyReflTranSH
public double calcEnergyReflTranSH(Arrival arrival) throws VelocityModelException, SlownessModelException
- Specified by:
calcEnergyReflTranSH
in interfaceSeismicPhase
- Overrides:
calcEnergyReflTranSH
in classSimpleSeismicPhase
- Throws:
VelocityModelException
SlownessModelException
-
calcPierceTimeDist
public java.util.List<TimeDist> calcPierceTimeDist(Arrival arrival)
- Specified by:
calcPierceTimeDist
in interfaceSeismicPhase
- Overrides:
calcPierceTimeDist
in classSimpleSeismicPhase
-
getNumRays
public int getNumRays()
- Specified by:
getNumRays
in interfaceSeismicPhase
- Overrides:
getNumRays
in classSimpleSeismicPhase
-
-