Package edu.sc.seis.TauP
Class SeismicPhaseSegment
- java.lang.Object
-
- edu.sc.seis.TauP.SeismicPhaseSegment
-
public class SeismicPhaseSegment extends java.lang.Object
Partial segment of a full seismic phase, usually between major boundaries or turn points.
-
-
Constructor Summary
Constructors Constructor Description SeismicPhaseSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, PhaseInteraction endAction, boolean isDownGoing, java.lang.String legName, double minRayParam, double maxRayParam)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calcEnergyFluxFactorReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH)
Calculates the product of the reflection and transmission coefficients for this leg.ArrivalPathSegment
calcPathTimeDist(Arrival currArrival, TimeDist prevEnd, int segmentIndex, int totalNumSegments, SeismicPhaseSegment prevSeg)
java.util.List<TimeDist>
calcTimeDist(Arrival currArrival, TimeDist prevEnd, boolean doPath, SeismicPhaseSegment prevSeg)
edu.sc.seis.TauP.BranchDescription
describe()
java.lang.String
describeBranchRange()
static java.lang.String
describeBranchRange(TauModel tMod, int startBranch, int endBranch)
static java.lang.String
endActionToString(PhaseInteraction endAction)
boolean
endsAtTop()
static SeismicPhaseSegment
failSegment(TauModel tMod)
static SeismicPhaseSegment
failSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, boolean isDownGoing, java.lang.String legName)
double
getBotDepth()
double[]
getDepthRange()
java.lang.String
getDepthRangeJSON()
java.lang.String
getDepthRangeString()
boolean
getIsFlat()
boolean
getIsPWave()
java.lang.String
getLegName()
double
getMaxRayParam()
double
getMinRayParam()
TauModel
getTauModel()
double
getTopDepth()
java.lang.String
getUpDownJSON()
static java.lang.String
segmentDescribe(java.util.List<SeismicPhaseSegment> segmentList)
static java.lang.String
segmentListDescribe(java.util.List<java.util.List<SeismicPhaseSegment>> segmentListList)
java.lang.String
toJSONString()
java.lang.String
toString()
int
turnBranch(double rp)
Calculate the TauBranch a ray turns within.
-
-
-
Constructor Detail
-
SeismicPhaseSegment
public SeismicPhaseSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, PhaseInteraction endAction, boolean isDownGoing, java.lang.String legName, double minRayParam, double maxRayParam)
-
-
Method Detail
-
failSegment
public static SeismicPhaseSegment failSegment(TauModel tMod)
-
failSegment
public static SeismicPhaseSegment failSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, boolean isDownGoing, java.lang.String legName)
-
turnBranch
public int turnBranch(double rp)
Calculate the TauBranch a ray turns within. If the segement is not downgoing, or the end action is not TURN then result is -1.- Parameters:
rp
- ray param- Returns:
- number of the tau branch where the ray turns, if possible
-
endsAtTop
public boolean endsAtTop() throws TauModelException
- Throws:
TauModelException
-
endActionToString
public static java.lang.String endActionToString(PhaseInteraction endAction)
-
describeBranchRange
public java.lang.String describeBranchRange()
-
describeBranchRange
public static java.lang.String describeBranchRange(TauModel tMod, int startBranch, int endBranch)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getIsPWave
public boolean getIsPWave()
-
getIsFlat
public boolean getIsFlat()
-
getLegName
public java.lang.String getLegName()
-
getTauModel
public TauModel getTauModel()
-
getMinRayParam
public double getMinRayParam()
-
getMaxRayParam
public double getMaxRayParam()
-
getDepthRangeString
public java.lang.String getDepthRangeString()
-
getDepthRangeJSON
public java.lang.String getDepthRangeJSON()
-
getTopDepth
public double getTopDepth()
-
getBotDepth
public double getBotDepth()
-
getDepthRange
public double[] getDepthRange()
-
getUpDownJSON
public java.lang.String getUpDownJSON()
-
describe
public edu.sc.seis.TauP.BranchDescription describe()
-
toJSONString
public java.lang.String toJSONString()
-
calcTimeDist
public java.util.List<TimeDist> calcTimeDist(Arrival currArrival, TimeDist prevEnd, boolean doPath, SeismicPhaseSegment prevSeg) throws SlownessModelException, TauModelException
-
calcPathTimeDist
public ArrivalPathSegment calcPathTimeDist(Arrival currArrival, TimeDist prevEnd, int segmentIndex, int totalNumSegments, SeismicPhaseSegment prevSeg) throws SlownessModelException, TauModelException
-
calcEnergyFluxFactorReflTran
public double calcEnergyFluxFactorReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH) throws VelocityModelException
Calculates the product of the reflection and transmission coefficients for this leg.- Parameters:
arrival
- arrival/ ray parameter to use for the calculationnextLegIsPWave
- if next leg is a P wave, neede for final coefficient at end of legallSH
- if should calculate the SH coefficients instead of P-SV- Throws:
VelocityModelException
-
segmentListDescribe
public static java.lang.String segmentListDescribe(java.util.List<java.util.List<SeismicPhaseSegment>> segmentListList)
-
segmentDescribe
public static java.lang.String segmentDescribe(java.util.List<SeismicPhaseSegment> segmentList)
-
-