Class SeismicPhaseFactory


  • public class SeismicPhaseFactory
    extends java.lang.Object
    • Field Detail

      • maxRefraction

        protected static double maxRefraction
        The maximum degrees that a Pn or Sn can refract along the moho. Note this is not the total distance, only the segment along the moho. The default is 20 degrees.
      • maxDiffraction

        protected static double maxDiffraction
        The maximum degrees that a Pdiff or Sdiff can diffract along the CMB. Note this is not the total distance, only the segment along the CMB. The default is 60 degrees.
    • Method Detail

      • getMaxRefraction

        public static double getMaxRefraction()
      • setMaxRefraction

        public static void setMaxRefraction​(double max)
      • getMaxDiffraction

        public static double getMaxDiffraction()
      • setMaxDiffraction

        public static void setMaxDiffraction​(double max)
      • getMaxKmpsLaps

        public static double getMaxKmpsLaps()
      • setMaxKmpsLaps

        public static void setMaxKmpsLaps​(double max)
      • configure

        public static void configure​(java.util.Properties toolProps)
      • getName

        public java.lang.String getName()
      • legIsPWave

        public static java.lang.Boolean legIsPWave​(java.lang.String currLeg)
      • legsArePWave

        public static boolean[] legsArePWave​(java.util.ArrayList<java.lang.String> legs)
      • calcBranchMultiplier

        protected static int[][] calcBranchMultiplier​(TauModel tMod,
                                                      java.util.List<SeismicPhaseSegment> segmentList)
        Calculates how many times the phase passes through a branch, up or down, so that we can just multiply instead of doing the ray calc for each time.
        Returns:
      • isLegDepth

        public boolean isLegDepth​(java.lang.String leg)
        find out if the next leg represents a phase conversion depth
        Parameters:
        leg -
        Returns:
      • calcStartBranch

        public int calcStartBranch​(ProtoSeismicPhase proto,
                                   java.lang.String currLeg)
      • endActionString

        public static final java.lang.String endActionString​(PhaseInteraction endAction)