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_Pierce
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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
distanceArgsFields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
phaseNamesFields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAddDepths(String depthString) calcAll(List<SeismicPhase> phaseList, List<RayCalculateable> rayCalcList) com.google.gson.GsonBuildervoiddestroy()booleanisAddDepth(double depth) checks to see if the given depth has been "added" as a pierce point.booleanparseAddDepthsList(String depthList) voidprintPierceAsHtml(PrintWriter out, List<Arrival> arrivalList) voidprintPierceAsText(PrintWriter out, List<Arrival> arrivalList) voidprintResult(PrintWriter out, List<Arrival> arrivalList) voidprintResultHtml(PrintWriter out, List<Arrival> arrivalList) voidprintResultText(PrintWriter out, List<Arrival> arrivalList) voidsetAddDepth(List<Double> addDepths) voidsetOnlyAddPoints(boolean onlyAddPoints) voidsetOnlyRevPoints(boolean onlyRevPoints) voidsetOnlyTurnPoints(boolean onlyTurnPoints) voidsetOnlyUnderPoints(boolean onlyUnderPoints) voidstart()Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
getDistanceArgs, getReceiverDepths, getSourceDepths, validateArgumentsMethods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
appendPhaseName, appendPhaseName, calcSeismicPhases, calcSeismicPhases, clearPhaseNames, clearPhases, createTimeResult, getNumPhases, getPhaseArgs, getRadiusOfEarth, getScatterer, getScattererDepth, getSeismicPhases, getTauModelDepthCorrected, getTauModelName, init, parsePhaseNameList, setModelName, setPhaseNameList, setPhaseNames, setScatterer, setSingleReceiverDepth, setSingleSourceDepth, setTauModelMethods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
Field Details
-
onlyTurnPoints
protected boolean onlyTurnPoints -
onlyRevPoints
protected boolean onlyRevPoints -
onlyUnderPoints
protected boolean onlyUnderPoints -
onlyAddPoints
protected boolean onlyAddPoints -
addDepths
-
onlyFirst
protected boolean onlyFirst
-
-
Constructor Details
-
TauP_Pierce
public TauP_Pierce() -
TauP_Pierce
-
TauP_Pierce
- Throws:
TauModelException
-
-
Method Details
-
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
-
appendAddDepths
-
parseAddDepthsList
-
getOutputFormat
- Specified by:
getOutputFormatin classTauP_Tool
-
getOutFileExtension
- Overrides:
getOutFileExtensionin classTauP_Tool
-
getSourceArgs
-
isWithAmplitude
public boolean isWithAmplitude() -
calcAll
public List<Arrival> calcAll(List<SeismicPhase> phaseList, List<RayCalculateable> rayCalcList) throws TauPException - Specified by:
calcAllin classTauP_AbstractRayTool- Throws:
TauPException
-
createGsonBuilder
public com.google.gson.GsonBuilder createGsonBuilder() -
start
- Specified by:
startin classTauP_Tool- Throws:
IOExceptionTauPException
-
destroy
- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
printResult
public void printResult(PrintWriter out, List<Arrival> arrivalList) throws IOException, TauPException - Specified by:
printResultin classTauP_AbstractRayTool- Throws:
IOExceptionTauPException
-
printResultText
- Throws:
TauModelException
-
printPierceAsText
- Throws:
TauModelException
-
printResultHtml
- Throws:
TauPException
-
printPierceAsHtml
- Throws:
TauPException
-
isAddDepth
public boolean isAddDepth(double depth) checks to see if the given depth has been "added" as a pierce point.
-