Class 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 Detail

      • ArrivalPathSegment

        public ArrivalPathSegment​(java.util.List<TimeDist> path,
                                  boolean isPWave,
                                  java.lang.String segmentName,
                                  TimeDist prevEnd,
                                  Arrival arrival,
                                  SeismicPhaseSegment phaseSegment,
                                  int segmentIndex,
                                  int totalNumSegments)
    • Method Detail

      • adjustPierce

        public static java.util.List<TimeDist> adjustPierce​(java.util.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 java.util.List<ArrivalPathSegment> adjustPath​(java.util.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 java.util.List<TimeDist> adjustPathForShifty​(java.util.List<TimeDist> path,
                                                                   double shifty)
      • getArrival

        public Arrival getArrival()