Package edu.sc.seis.TauP
Class SeismicPhaseSegment
java.lang.Object
edu.sc.seis.TauP.SeismicPhaseSegment
Partial segment of a full seismic phase, usually between major boundaries or turn points.
-
Constructor Summary
ConstructorsConstructorDescriptionSeismicPhaseSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, PhaseInteraction endAction, LayerPropogationType layerPropogationType, String legName, double minRayParam, double maxRayParam) -
Method Summary
Modifier and TypeMethodDescriptiondoublecalcEnergyFluxFactorReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH) Calculates the product of the energy flux reflection and transmission coefficients for this leg.calcPathTimeDist(Arrival currArrival, TimeDist prevEnd, int segmentIndex, int totalNumSegments, SeismicPhaseSegment prevSeg) calcReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH) Calculates the product of the reflection and transmission coefficients for this leg.calcTimeDist(Arrival currArrival, TimeDist prevEnd, boolean doPath, SeismicPhaseSegment prevSeg) clone()edu.sc.seis.TauP.BranchDescriptiondescribe()static StringdescribeBranchRange(TauModel tMod, int startBranch, int endBranch) static StringendActionToString(PhaseInteraction endAction) booleanstatic SeismicPhaseSegmentfailSegment(TauModel tMod) static SeismicPhaseSegmentfailSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, LayerPropogationType layerPropogationType, String legName) doubledouble[]doublebooleanbooleandoubledoublegetTMod()doublestatic StringsegmentDescribe(List<SeismicPhaseSegment> segmentList) static StringsegmentListDescribe(List<List<SeismicPhaseSegment>> segmentListList) toString()intturnBranch(double rp) Calculate the TauBranch a ray turns within.
-
Constructor Details
-
SeismicPhaseSegment
public SeismicPhaseSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, PhaseInteraction endAction, LayerPropogationType layerPropogationType, String legName, double minRayParam, double maxRayParam)
-
-
Method Details
-
failSegment
-
failSegment
public static SeismicPhaseSegment failSegment(TauModel tMod, int startBranch, int endBranch, boolean isPWave, LayerPropogationType layerPropogationType, 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
- Throws:
TauModelException
-
endActionToString
-
describeBranchRange
-
describeBranchRange
-
toString
-
getIsPWave
public boolean getIsPWave() -
getIsFlat
public boolean getIsFlat() -
getLegName
-
getTauModel
-
getMinRayParam
public double getMinRayParam() -
getMaxRayParam
public double getMaxRayParam() -
getDepthRangeString
-
getDepthRangeJSON
-
getTopDepth
public double getTopDepth() -
getBotDepth
public double getBotDepth() -
getEndDepth
public double getEndDepth() -
getDepthRange
public double[] getDepthRange() -
getTMod
-
getEndAction
-
getPrevEndAction
-
describe
public edu.sc.seis.TauP.BranchDescription describe() -
toJSONString
-
calcTimeDist
public List<TimeDist> calcTimeDist(Arrival currArrival, TimeDist prevEnd, boolean doPath, SeismicPhaseSegment prevSeg) throws SlownessModelException - Throws:
SlownessModelException
-
calcPathTimeDist
public ArrivalPathSegment calcPathTimeDist(Arrival currArrival, TimeDist prevEnd, int segmentIndex, int totalNumSegments, SeismicPhaseSegment prevSeg) throws SlownessModelException - Throws:
SlownessModelException
-
calcEnergyFluxFactorReflTran
public double calcEnergyFluxFactorReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH) throws TauModelException, SlownessModelException Calculates the product of the energy flux 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:
TauModelExceptionSlownessModelException
-
calcReflTran
public SeismicPhaseReflTransHolder calcReflTran(Arrival arrival, boolean nextLegIsPWave, boolean allSH) throws TauModelException, SlownessModelException 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:
TauModelExceptionSlownessModelException
-
clone
-
segmentListDescribe
-
segmentDescribe
-