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
Segment of the path of a seismic phase. Usually a segment between discontinuities in the model, or turning point.
-
-
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.static java.util.List<TimeDist>
adjustPathForShifty(java.util.List<TimeDist> path, double shifty)
static java.util.List<TimeDist>
adjustPierce(java.util.List<TimeDist> inPath, Arrival arrival)
Adjust pierce points so the end point lines up.com.google.gson.JsonObject
asJsonObject()
static double
calcShiftyForDist(TimeDist firstPoint, TimeDist lastPoint, Arrival arrival)
java.lang.String
description()
Arrival
getArrival()
SeismicPhaseSegment
getPhaseSegment()
-
Methods inherited from class edu.sc.seis.TauP.AbstractPathSegment
asJsonObject, getCssClasses, getPath, getPathEnd, getPathPoint, getPathStart, getPhase, getSegmentIndex, getSegmentName, getWavetypeStr, isPWave, linearInterpPath, negativeDistance, trimDuplicates, writeGMTText, writeSVGCartesian, 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
-
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 patharrival
- 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 patharrival
- 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)
-
asJsonObject
public com.google.gson.JsonObject asJsonObject()
- Overrides:
asJsonObject
in classAbstractPathSegment
-
description
public java.lang.String description()
- Specified by:
description
in classAbstractPathSegment
-
getPhaseSegment
public SeismicPhaseSegment getPhaseSegment()
-
getArrival
public Arrival getArrival()
-
-