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, DEFAULT_PHASES, degreesList, depth, distKilometersList, eventLat, eventLon, GUI, modelName, onlyFirst, onlyPrintRayP, onlyPrintTime, phaseNames, receiverDepth, relativePhaseName, scattererDepth, scattererDistDeg, shootRayp, stationLat, stationLon, takeoffAngle, tMod, tModDepth
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
cmdLineArgs, CSV, DEBUG, GMT, JSON, outFileBase, outForms, outputFormat, SVG, TEXT, toolProps, verbose, writer
-
-
Constructor Summary
Constructors Constructor Description TauP_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)java.util.List<Arrival>calculate(java.util.List<java.lang.Double> degreesList)voiddepthCorrect(double depth, double receiverDepth, double scatterDepth)override depthCorrect so that we can put the pierce depths in.java.lang.StringgetLimitUsage()java.lang.StringgetUsage()prints the known command line flags.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)voidprintResultJSON(java.io.PrintWriter out)voidprintResultText(java.io.PrintWriter out)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)TauModelsplitPierceDepths(TauModel tModOrig)-
Methods inherited from class edu.sc.seis.TauP.TauP_Time
allowedOutputFormats, appendPhaseName, appendPhaseName, calcEventStation, calcRayParameter, calcRayParameter, calcRayParameterSDeg, calcTakeoff, calcTakeoff, calcTime, calcTime, calculate, calculateRelativeArrival, clearArrivals, clearPhaseNames, clearPhases, depthCorrect, depthCorrect, depthCorrect, destroy, extractPhaseNames, getArrival, getArrivals, getDisconDepths, getDistanceUsage, getNumArrivals, getNumPhases, getPhaseNames, getPhaseNames, getPhaseNameString, getPhaseUsage, getReceiverDepth, getScattererDepth, getScattererDistDeg, getSeismicPhases, getSourceDepth, getStdUsage, getStdUsageHead, getTauModel, getTauModelDepthCorrected, getTauModelName, init, linearInterp, loadTauModel, parseDegreeList, parsePhaseList, parseSourceModelCmdLineArgs, printHelp, printResult, readPhaseFile, readTauModel, recalcPhases, resultAsJSON, resultAsJSONObject, setDefaultOutputFormat, setEventLatLon, setPhaseNames, setPhaseNames, setReceiverDepth, setScatterer, setScattererDepth, setScattererDistDeg, setSourceDepth, setStationLatLon, setTauModel, sortArrivals, splitPhaseNameList, start, validateArguments, writeJSON, writeJSON
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
closeWriter, configDefaults, dashEquals, endGmtAndCleanUp, getModDepthUsage, getOutFile, getOutFileBase, getOutFileExtension, getOutputFormat, getStdUsageHead, getStdUsageTail, getWriter, parseCommonCmdLineArgs, printNoComprendoArgs, printScriptBeginning, printUsage, setOutFileBase, setOutFileExtension, setOutputFormat, setWriter, toolNameFromClass
-
-
-
-
Constructor Detail
-
TauP_Pierce
public 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, double scatterDepth) throws TauModelExceptionoverride depthCorrect so that we can put the pierce depths in.- Overrides:
depthCorrectin classTauP_Time- Parameters:
depth- the source depthreceiverDepth- the receiver depthscatterDepth- scatterer depth, set to zero if no scattering- Throws:
TauModelException
-
splitPierceDepths
public TauModel splitPierceDepths(TauModel tModOrig) throws TauModelException
- Throws:
TauModelException
-
calculate
public java.util.List<Arrival> calculate(java.util.List<java.lang.Double> degreesList) throws TauPException
- Overrides:
calculatein classTauP_Time- Throws:
TauPException
-
printResultText
public void printResultText(java.io.PrintWriter out) throws java.io.IOException- Overrides:
printResultTextin classTauP_Time- Throws:
java.io.IOException
-
printResultJSON
public void printResultJSON(java.io.PrintWriter out)
- Overrides:
printResultJSONin classTauP_Time
-
isAddDepth
public boolean isAddDepth(double depth)
checks to see if the given depth has been "added" as a pierce point.
-
getLimitUsage
public java.lang.String getLimitUsage()
- Overrides:
getLimitUsagein classTauP_Time
-
getUsage
public java.lang.String getUsage()
prints the known command line flags.
-
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
-
-