Package edu.sc.seis.TauP
Class SeismicPhaseSegment
- java.lang.Object
-
- edu.sc.seis.TauP.SeismicPhaseSegment
-
public class SeismicPhaseSegment extends java.lang.Object
-
-
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 ArrivalPathSegment
calcPathTimeDist(Arrival currArrival, TimeDist prevEnd, int segmentIndex, int totalNumSegments)
double
calcReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH)
Calculates the product of the reflection and transmission coefficients for this leg.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[]
getDepthRange()
java.lang.String
getDepthRangeJSON()
java.lang.String
getDepthRangeString()
TauModel
getTauModel()
java.lang.String
getUpDownJSON()
java.lang.String
toJSONString()
java.lang.String
toString()
-
-
-
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)
-
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
-
getTauModel
public TauModel getTauModel()
-
getDepthRangeString
public java.lang.String getDepthRangeString()
-
getDepthRangeJSON
public java.lang.String getDepthRangeJSON()
-
getDepthRange
public double[] getDepthRange()
-
getUpDownJSON
public java.lang.String getUpDownJSON()
-
toJSONString
public java.lang.String toJSONString()
-
calcPathTimeDist
public ArrivalPathSegment calcPathTimeDist(Arrival currArrival, TimeDist prevEnd, int segmentIndex, int totalNumSegments)
-
calcReflTran
public double calcReflTran(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
-
-