Package edu.sc.seis.TauP
Class SeismicPhaseSegment
- java.lang.Object
-
- edu.sc.seis.TauP.SeismicPhaseSegment
-
public class SeismicPhaseSegment extends java.lang.ObjectPartial 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 doublecalcEnergyFluxFactorReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH)Calculates the product of the reflection and transmission coefficients for this leg.ArrivalPathSegmentcalcPathTimeDist(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.BranchDescriptiondescribe()java.lang.StringdescribeBranchRange()static java.lang.StringdescribeBranchRange(TauModel tMod, int startBranch, int endBranch)static java.lang.StringendActionToString(PhaseInteraction endAction)booleanendsAtTop()static SeismicPhaseSegmentfailSegment(TauModel tMod)static SeismicPhaseSegmentfailSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, boolean isDownGoing, java.lang.String legName)doublegetBotDepth()double[]getDepthRange()java.lang.StringgetDepthRangeJSON()java.lang.StringgetDepthRangeString()booleangetIsFlat()booleangetIsPWave()java.lang.StringgetLegName()doublegetMaxRayParam()doublegetMinRayParam()TauModelgetTauModel()doublegetTopDepth()java.lang.StringgetUpDownJSON()static java.lang.StringsegmentDescribe(java.util.List<SeismicPhaseSegment> segmentList)static java.lang.StringsegmentListDescribe(java.util.List<java.util.List<SeismicPhaseSegment>> segmentListList)java.lang.StringtoJSONString()java.lang.StringtoString()intturnBranch(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:
toStringin 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)
-
-