Class ArrivalPathSegment

    • 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

      • 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 -
        arrival -
        Returns:
      • adjustPathForShifty

        public java.util.List<TimeDist> adjustPathForShifty​(double shifty)