Class SeismicPhaseSegment


  • public class SeismicPhaseSegment
    extends java.lang.Object
    • 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)
      • 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
      • 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()
      • 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 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