Package edu.sc.seis.TauP
Interface SeismicPhase
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Serializable
- All Known Implementing Classes:
CompositeSeismicPhase,FailedSeismicPhase,ScatteredSeismicPhase,SimpleContigSeismicPhase,SimpleSeismicPhase
public interface SeismicPhase extends java.io.Serializable, java.lang.Cloneable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.lang.StringbaseDescribe(SeismicPhase phase)doublecalcEnergyFluxFactorReflTranPSV(Arrival arrival)doublecalcEnergyFluxFactorReflTranSH(Arrival arrival)doublecalcIncidentAngle(double arrivalRayParam)doublecalcIncidentAngleDegree(double arrivalRayParam)doublecalcRayParamForIncidentAngle(double incidentDegree)doublecalcRayParamForTakeoffAngle(double takeoffDegree)java.util.List<ArrivalPathSegment>calcSegmentPaths(Arrival currArrival)doublecalcTakeoffAngle(double arrivalRayParam)doublecalcTakeoffAngleDegree(double arrivalRayParam)doublecalcTstar(Arrival currArrival)intcountFlatLegs()ArrivalcreateArrivalAtIndex(int rayNum)Creates an Arrival for a sampled ray parameter from the model.doubledensityAtReceiver()doubledensityAtSource()java.lang.Stringdescribe()java.lang.StringdescribeShort()static doubledistanceTrim180(double deg)voiddump()java.lang.StringfailReason()booleanfinalSegmentIsPWave()True if the final, incident, wavetype is a P wave, false if an S wave.double[]getDist()doublegetDist(int i)ArrivalgetEarliestArrival(double degrees)static ArrivalgetEarliestArrival(java.util.List<SeismicPhase> phases, double degrees)SeismicPhaseSegmentgetFinalPhaseSegment()SeismicPhaseSegmentgetInitialPhaseSegment()java.util.List<java.util.List<SeismicPhaseSegment>>getListPhaseSegments()doublegetMaxDistance()doublegetMaxDistanceDeg()doublegetMaxRayParam()intgetMaxRayParamIndex()doublegetMaxTime()doublegetMinDistance()doublegetMinDistanceDeg()doublegetMinRayParam()intgetMinRayParamIndex()doublegetMinTime()java.lang.StringgetName()intgetNumRays()java.lang.StringgetPuristName()double[]getRayParams()doublegetRayParams(int i)doublegetReceiverDepth()java.util.List<ShadowZone>getShadowZones()doublegetSourceDepth()double[]getTau()doublegetTau(int i)TauModelgetTauModel()double[]getTime()doublegetTime(int i)booleanhasArrivals()SeismicPhaseinterpolatePhase(double maxDeltaDeg)java.util.List<TimeDist>interpPierceTimeDist(Arrival arrival)booleanisAllPWave()True is all segments of this path are only P waves.booleanisAllSWave()True is all segments of this path are only S waves.booleanisFail()booleanphasesExistsInModel()static java.lang.StringsegmentDescribe(SeismicPhase phase)ArrivalshootRay(double rayParam)booleansourceSegmentIsPWave()True if the initial leg, leaving the source, wavetype is a P wave, false if an S wave.static java.util.List<double[]>splitForRepeatRayParam(double[] rayParams, double[] values)Split calculated array into segments for repeated ray parameter values, which indicate a discontinuity in the calculations usually due to low velocity zone.java.lang.StringtoString()doublevelocityAtReceiver()doublevelocityAtSource()
-
-
-
Field Detail
-
PWAVE
static final boolean PWAVE
- See Also:
- Constant Field Values
-
SWAVE
static final boolean SWAVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
phasesExistsInModel
boolean phasesExistsInModel()
-
getEarliestArrival
Arrival getEarliestArrival(double degrees)
-
getMinDistanceDeg
double getMinDistanceDeg()
-
getMinDistance
double getMinDistance()
-
getMaxDistanceDeg
double getMaxDistanceDeg()
-
getMaxDistance
double getMaxDistance()
-
getMaxRayParam
double getMaxRayParam()
-
getMinRayParam
double getMinRayParam()
-
getMinTime
double getMinTime()
-
getMaxTime
double getMaxTime()
-
getName
java.lang.String getName()
-
getPuristName
java.lang.String getPuristName()
-
getSourceDepth
double getSourceDepth()
-
getReceiverDepth
double getReceiverDepth()
-
hasArrivals
boolean hasArrivals()
-
describe
java.lang.String describe()
-
describeShort
java.lang.String describeShort()
-
getTauModel
TauModel getTauModel()
-
getEarliestArrival
static Arrival getEarliestArrival(java.util.List<SeismicPhase> phases, double degrees)
-
isFail
boolean isFail()
-
failReason
java.lang.String failReason()
-
getMaxRayParamIndex
int getMaxRayParamIndex()
-
getMinRayParamIndex
int getMinRayParamIndex()
-
getListPhaseSegments
java.util.List<java.util.List<SeismicPhaseSegment>> getListPhaseSegments()
-
getInitialPhaseSegment
SeismicPhaseSegment getInitialPhaseSegment()
-
getFinalPhaseSegment
SeismicPhaseSegment getFinalPhaseSegment()
-
countFlatLegs
int countFlatLegs()
-
getRayParams
double getRayParams(int i)
-
getRayParams
double[] getRayParams()
-
getDist
double getDist(int i)
-
getDist
double[] getDist()
-
getTime
double getTime(int i)
-
getTime
double[] getTime()
-
getTau
double getTau(int i)
-
getTau
double[] getTau()
-
distanceTrim180
static double distanceTrim180(double deg)
-
createArrivalAtIndex
Arrival createArrivalAtIndex(int rayNum)
Creates an Arrival for a sampled ray parameter from the model. No interpolation between rays as this is a sample.- Parameters:
rayNum- index in ray parameters
-
shootRay
Arrival shootRay(double rayParam) throws TauPException
- Throws:
TauPException
-
isAllPWave
boolean isAllPWave()
True is all segments of this path are only P waves.
-
isAllSWave
boolean isAllSWave()
True is all segments of this path are only S waves.
-
calcRayParamForTakeoffAngle
double calcRayParamForTakeoffAngle(double takeoffDegree) throws NoArrivalException- Throws:
NoArrivalException
-
calcRayParamForIncidentAngle
double calcRayParamForIncidentAngle(double incidentDegree) throws NoArrivalException- Throws:
NoArrivalException
-
velocityAtSource
double velocityAtSource()
-
velocityAtReceiver
double velocityAtReceiver()
-
densityAtReceiver
double densityAtReceiver()
-
densityAtSource
double densityAtSource()
-
calcTakeoffAngleDegree
double calcTakeoffAngleDegree(double arrivalRayParam)
-
calcTakeoffAngle
double calcTakeoffAngle(double arrivalRayParam)
-
calcIncidentAngle
double calcIncidentAngle(double arrivalRayParam)
-
calcIncidentAngleDegree
double calcIncidentAngleDegree(double arrivalRayParam)
-
sourceSegmentIsPWave
boolean sourceSegmentIsPWave()
True if the initial leg, leaving the source, wavetype is a P wave, false if an S wave.
-
finalSegmentIsPWave
boolean finalSegmentIsPWave()
True if the final, incident, wavetype is a P wave, false if an S wave.
-
calcSegmentPaths
java.util.List<ArrivalPathSegment> calcSegmentPaths(Arrival currArrival) throws NoArrivalException, SlownessModelException, TauModelException
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
dump
void dump()
-
interpolatePhase
SeismicPhase interpolatePhase(double maxDeltaDeg)
-
calcEnergyFluxFactorReflTranPSV
double calcEnergyFluxFactorReflTranPSV(Arrival arrival) throws VelocityModelException, SlownessModelException, NoArrivalException
-
calcEnergyFluxFactorReflTranSH
double calcEnergyFluxFactorReflTranSH(Arrival arrival) throws VelocityModelException, SlownessModelException, NoArrivalException
-
interpPierceTimeDist
java.util.List<TimeDist> interpPierceTimeDist(Arrival arrival) throws NoArrivalException, TauModelException
- Throws:
NoArrivalExceptionTauModelException
-
calcTstar
double calcTstar(Arrival currArrival) throws NoArrivalException
- Throws:
NoArrivalException
-
splitForRepeatRayParam
static java.util.List<double[]> splitForRepeatRayParam(double[] rayParams, double[] values)Split calculated array into segments for repeated ray parameter values, which indicate a discontinuity in the calculations usually due to low velocity zone.- Parameters:
rayParams- ray parameter array for phasevalues- derived array, such as distance, time, tau, etc.- Returns:
- list of arrays for each contiguous segment
-
baseDescribe
static java.lang.String baseDescribe(SeismicPhase phase)
-
segmentDescribe
static java.lang.String segmentDescribe(SeismicPhase phase)
-
getNumRays
int getNumRays()
-
getShadowZones
java.util.List<ShadowZone> getShadowZones()
-
-