Package edu.sc.seis.TauP
Class ArrivalPathSegment
java.lang.Object
edu.sc.seis.TauP.AbstractPathSegment
edu.sc.seis.TauP.ArrivalPathSegment
Segment of the path of a seismic phase. Usually a segment between discontinuities in the model, or turning point.
-
Constructor Summary
ConstructorsConstructorDescriptionArrivalPathSegment(List<TimeDist> path, boolean isPWave, String segmentName, TimeDist prevEnd, Arrival arrival, SeismicPhaseSegment phaseSegment, int segmentIndex, int totalNumSegments) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ArrivalPathSegment>adjustPath(List<ArrivalPathSegment> inPath, Arrival arrival) Adjust path so the end point lines up.adjustPathForShifty(List<TimeDist> path, double shifty) adjustPierce(List<TimeDist> inPath, Arrival arrival) Adjust pierce points so the end point lines up.com.google.gson.JsonObjectstatic doublecalcShiftyForDist(TimeDist firstPoint, TimeDist lastPoint, Arrival arrival) gmtTextLine(TimeDist td, DistDepthRange distDepthRange, String xFormat, String yFormat, boolean withTime, boolean withLatLon, DistanceAxisType distanceAxisType, DepthAxisType depthAxisType) static booleanraysCross(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2) static booleanMethods inherited from class edu.sc.seis.TauP.AbstractPathSegment
asJsonObject, getCssClasses, getPath, getPathEnd, getPathPoint, getPathStart, getPhase, getSegmentIndex, getSegmentName, getWavetypeStr, gmtTextLine, isPWave, linearInterpPath, negativeDistance, trimDuplicates, writeGMTText, writeSVGCartesian, writeSVGCartesian
-
Constructor Details
-
ArrivalPathSegment
-
-
Method Details
-
adjustPierce
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
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
-
adjustPathForShifty
-
asJsonObject
public com.google.gson.JsonObject asJsonObject()- Overrides:
asJsonObjectin classAbstractPathSegment
-
description
- Specified by:
descriptionin classAbstractPathSegment
-
gmtTextLine
public String gmtTextLine(TimeDist td, DistDepthRange distDepthRange, String xFormat, String yFormat, boolean withTime, boolean withLatLon, DistanceAxisType distanceAxisType, DepthAxisType depthAxisType) - Overrides:
gmtTextLinein classAbstractPathSegment
-
getPhaseSegment
-
getArrival
-
asNegativeDistance
-
raysCross
-
raysCross
public static boolean raysCross(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2)
-