Package edu.sc.seis.TauP
Class ArrivalPathSegment
- java.lang.Object
-
- edu.sc.seis.TauP.AbstractPathSegment
-
- edu.sc.seis.TauP.ArrivalPathSegment
-
public class ArrivalPathSegment extends AbstractPathSegment
-
-
Constructor Summary
Constructors Constructor Description ArrivalPathSegment(java.util.List<TimeDist> path, boolean isPWave, java.lang.String segmentName, TimeDist prevEnd, Arrival arrival, SeismicPhaseSegment phaseSegment, int segmentIndex, int totalNumSegments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<ArrivalPathSegment>
adjustPath(java.util.List<ArrivalPathSegment> inPath, Arrival arrival)
Adjust path so the end point lines up.java.util.List<TimeDist>
adjustPathForShifty(double shifty)
java.lang.String
description()
-
Methods inherited from class edu.sc.seis.TauP.AbstractPathSegment
asJSONObject, getCssClasses, getPath, getPathEnd, getPathPoint, getPathStart, getPhase, linearInterpPath, negativeDistance, trimDuplicates, writeGMTText, writeJSON, writeSVGCartesian
-
-
-
-
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)
-
description
public java.lang.String description()
- Specified by:
description
in classAbstractPathSegment
-
-