Package edu.sc.seis.TauP
Class TauP_Pierce
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_Time
-
- edu.sc.seis.TauP.TauP_Pierce
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]addDepthprotected booleanonlyAddPointsprotected booleanonlyRevPointsprotected booleanonlyTurnPointsprotected booleanonlyUnderPoints-
Fields inherited from class edu.sc.seis.TauP.TauP_Time
arrivals, azimuth, backAzimuth, degrees, depth, distKilometers, eventLat, eventLon, GUI, modelName, onlyPrintRayP, onlyPrintTime, phaseNames, receiverDepth, relativeArrival, relativePhaseName, stationLat, stationLon, takeoffAngle, tMod, tModDepth
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTauP_Pierce()TauP_Pierce(TauModel tMod)TauP_Pierce(java.lang.String modelName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendAddDepths(java.lang.String depthString)voidcalculate(double degrees)voiddepthCorrect(double depth, double receiverDepth)override depthCorrect so that we can put the pierce depths in.booleanisAddDepth(double depth)checks to see if the given depth has been "added" as a pierce point.static voidmain(java.lang.String[] args)Allows TauP_Pierce to run as an application.protected double[]parseAddDepthsList(java.lang.String depthList)java.lang.String[]parseCmdLineArgs(java.lang.String[] args)voidprintResult(java.io.PrintWriter out)voidprintUsage()prints the known command line flags.voidsetAddDepths(java.lang.String depthString)sets depths for additional pierce points, ie depths that are not really discontinuities in the model.voidsetOnlyAddPoints(boolean onlyAddPoints)voidsetOnlyRevPoints(boolean onlyRevPoints)voidsetOnlyTurnPoints(boolean onlyTurnPoints)voidsetOnlyUnderPoints(boolean onlyUnderPoints)-
Methods inherited from class edu.sc.seis.TauP.TauP_Time
appendPhaseName, appendPhaseName, calcTakeoff, calcTime, clearArrivals, clearPhaseNames, clearPhases, depthCorrect, destroy, getArrival, getArrivals, getDisconDepths, getNumArrivals, getNumPhases, getPhaseNames, getPhaseNames, getPhaseNameString, getReceiverDepth, getSeismicPhases, getSourceDepth, getTauModel, getTauModelDepthCorrected, getTauModelName, init, linearInterp, loadTauModel, parseDegreeList, parsePhaseList, printHelp, printResultJSON, printResultText, printStdUsage, printStdUsageHead, readPhaseFile, readTauModel, recalcPhases, setPhaseNames, setPhaseNames, setReceiverDepth, setSourceDepth, setTauModel, sortArrivals, start
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
dashEquals, endGmtAndCleanUp, getOutFile, getOutFileBase, getOutFileExtension, getOutputFormat, getWriter, parseCommonCmdLineArgs, printNoComprendoArgs, printScriptBeginning, printStdUsageHead, printStdUsageTail, setOutFileBase, setOutFileExtension, setOutputFormat, setWriter, toolNameFromClass
-
-
-
-
Constructor Detail
-
TauP_Pierce
protected TauP_Pierce()
-
TauP_Pierce
public TauP_Pierce(TauModel tMod) throws TauModelException
- Throws:
TauModelException
-
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)
-
setAddDepths
public void setAddDepths(java.lang.String depthString)
sets depths for additional pierce points, ie depths that are not really discontinuities in the model.
-
appendAddDepths
public void appendAddDepths(java.lang.String depthString)
-
parseAddDepthsList
protected double[] parseAddDepthsList(java.lang.String depthList)
-
depthCorrect
public void depthCorrect(double depth, double receiverDepth) throws TauModelExceptionoverride depthCorrect so that we can put the pierce depths in.- Overrides:
depthCorrectin classTauP_Time- Parameters:
depth- the source depthreceiverDepth- the receiver depth- Throws:
TauModelException
-
calculate
public void calculate(double degrees) throws TauModelException- Overrides:
calculatein classTauP_Time- Throws:
TauModelException
-
printResult
public void printResult(java.io.PrintWriter out) throws java.io.IOException- Overrides:
printResultin classTauP_Time- Throws:
java.io.IOException
-
isAddDepth
public boolean isAddDepth(double depth)
checks to see if the given depth has been "added" as a pierce point.
-
printUsage
public void printUsage()
prints the known command line flags.- Overrides:
printUsagein classTauP_Time
-
parseCmdLineArgs
public java.lang.String[] parseCmdLineArgs(java.lang.String[] args) throws java.io.IOException- Overrides:
parseCmdLineArgsin classTauP_Time- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionAllows TauP_Pierce to run as an application. Creates an instance of TauP_Pierce. ToolRun.main should be used instead.- Throws:
java.io.IOException
-
-