Package edu.sc.seis.TauP.cmdline
Class TauP_Pierce
- java.lang.Object
-
- edu.sc.seis.TauP.cmdline.TauP_Tool
-
- edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
-
- edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
-
- edu.sc.seis.TauP.cmdline.TauP_Time
-
- edu.sc.seis.TauP.cmdline.TauP_Pierce
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Pierce extends TauP_Time
Calculate pierce points for different branches using linear interpolation between known slowness samples. A pierce point is where a ray pierces a tau branch. This gives a (very) rough path through the model for a ray.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
onlyAddPoints
protected boolean
onlyRevPoints
protected boolean
onlyTurnPoints
protected boolean
onlyUnderPoints
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_Time
onlyFirst, onlyPrintRayP, onlyPrintTime, relativePhaseList, relativePhaseName
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
distanceArgs
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
phaseNames
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps
-
-
Constructor Summary
Constructors Constructor Description TauP_Pierce()
TauP_Pierce(TauModel tMod)
TauP_Pierce(java.lang.String modelName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendAddDepths(java.lang.String depthString)
java.util.List<Arrival>
calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> rayCalcList)
com.google.gson.GsonBuilder
createGsonBuilder()
boolean
isAddDepth(double depth)
checks to see if the given depth has been "added" as a pierce point.protected java.util.List<java.lang.Double>
parseAddDepthsList(java.lang.String depthList)
void
printPierceAsText(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
void
printResultText(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
void
setAddDepth(java.util.List<java.lang.Double> addDepths)
void
setOnlyAddPoints(boolean onlyAddPoints)
void
setOnlyRevPoints(boolean onlyRevPoints)
void
setOnlyTurnPoints(boolean onlyTurnPoints)
void
setOnlyUnderPoints(boolean onlyUnderPoints)
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_Time
calcSeismicPhases, destroy, getOutFileExtension, getOutputFormat, getSourceArgs, init, isWithAmplitude, printArrivalsAsText, printResult, start, validateArguments
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
getDistanceArgs, getReceiverDepths, getSourceDepths
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
appendPhaseName, appendPhaseName, calcSeismicPhases, clearPhaseNames, clearPhases, createTimeResult, getNumPhases, getPhaseArgs, getRadiusOfEarth, getScatterer, getScattererDepth, getSeismicPhases, getTauModelDepthCorrected, getTauModelName, parsePhaseNameList, setModelName, setPhaseNameList, setPhaseNames, setScatterer, setSingleReceiverDepth, setSingleSourceDepth, setTauModel
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
-
-
-
Constructor Detail
-
TauP_Pierce
public TauP_Pierce()
-
TauP_Pierce
public TauP_Pierce(TauModel tMod)
-
TauP_Pierce
public TauP_Pierce(java.lang.String modelName) throws TauModelException
- Throws:
TauModelException
-
-
Method Detail
-
setOnlyTurnPoints
public void setOnlyTurnPoints(boolean onlyTurnPoints)
-
setOnlyRevPoints
public void setOnlyRevPoints(boolean onlyRevPoints)
-
setOnlyUnderPoints
public void setOnlyUnderPoints(boolean onlyUnderPoints)
-
setOnlyAddPoints
public void setOnlyAddPoints(boolean onlyAddPoints)
-
setAddDepth
public void setAddDepth(java.util.List<java.lang.Double> addDepths)
-
appendAddDepths
public void appendAddDepths(java.lang.String depthString)
-
parseAddDepthsList
protected java.util.List<java.lang.Double> parseAddDepthsList(java.lang.String depthList)
-
calcAll
public java.util.List<Arrival> calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> rayCalcList) throws TauPException
- Overrides:
calcAll
in classTauP_Time
- Throws:
TauPException
-
createGsonBuilder
public com.google.gson.GsonBuilder createGsonBuilder()
- Overrides:
createGsonBuilder
in classTauP_Time
-
printResultText
public void printResultText(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
- Overrides:
printResultText
in classTauP_Time
-
printPierceAsText
public void printPierceAsText(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
-
isAddDepth
public boolean isAddDepth(double depth)
checks to see if the given depth has been "added" as a pierce point.
-
-