Class ArrivalPathSegment

java.lang.Object
edu.sc.seis.TauP.AbstractPathSegment
edu.sc.seis.TauP.ArrivalPathSegment

public class ArrivalPathSegment extends AbstractPathSegment
Segment of the path of a seismic phase. Usually a segment between discontinuities in the model, or turning point.
  • Constructor Details

  • Method Details

    • adjustPierce

      public static List<TimeDist> adjustPierce(List<TimeDist> inPath, Arrival arrival)
      Adjust pierce points so the end point lines up. Because we are shooting a ray parameter through the model, and that ray parameter came from an interpolation, it can happen for long paths that the output path doesn't quite end at the requested distance. We do a simple scaling of all pierce distances so it hits the output.
      Parameters:
      inPath - input path
      arrival - arrival for path
      Returns:
      adjusted path
    • adjustPath

      public static List<ArrivalPathSegment> adjustPath(List<ArrivalPathSegment> inPath, Arrival arrival)
      Adjust path so the end point lines up. Because we are shooting a ray parameter through the model, and that ray parameter came from an interpolation, it can happen for long paths that the output path doesn't quite end at the requested distance. We do a simple scaling of all path distances so it hits the output.
      Parameters:
      inPath - input path
      arrival - arrival for path
      Returns:
      adjusted path
    • calcShiftyForDist

      public static double calcShiftyForDist(TimeDist firstPoint, TimeDist lastPoint, Arrival arrival)
    • adjustPathForShifty

      public static List<TimeDist> adjustPathForShifty(List<TimeDist> path, double shifty)
    • asJsonObject

      public com.google.gson.JsonObject asJsonObject()
      Overrides:
      asJsonObject in class AbstractPathSegment
    • description

      public String description()
      Specified by:
      description in class AbstractPathSegment
    • gmtTextLine

      public String gmtTextLine(TimeDist td, DistDepthRange distDepthRange, String xFormat, String yFormat, boolean withTime, boolean withLatLon, DistanceAxisType distanceAxisType, DepthAxisType depthAxisType)
      Overrides:
      gmtTextLine in class AbstractPathSegment
    • getPhaseSegment

      public SeismicPhaseSegment getPhaseSegment()
    • getArrival

      public Arrival getArrival()
    • asNegativeDistance

      public ArrivalPathSegment asNegativeDistance()
    • raysCross

      public static boolean raysCross(ArrivalPathSegment a, ArrivalPathSegment b)
    • raysCross

      public static boolean raysCross(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2)