Class SeismicPhaseSegment


  • public class SeismicPhaseSegment
    extends java.lang.Object
    Partial segment of a full seismic phase, usually between major boundaries or turn points.
    • 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,
                                                      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
      • 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 class java.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()
      • 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 calculation
        nextLegIsPWave - if next leg is a P wave, neede for final coefficient at end of leg
        allSH - 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)