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[]
addDepth
protected boolean
onlyAddPoints
protected boolean
onlyRevPoints
protected boolean
onlyTurnPoints
protected boolean
onlyUnderPoints
-
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 void
appendAddDepths(java.lang.String depthString)
java.util.List<Arrival>
calculate(java.util.List<java.lang.Double> degreesList)
void
depthCorrect(double depth, double receiverDepth, double scatterDepth)
override depthCorrect so that we can put the pierce depths in.java.lang.String
getLimitUsage()
java.lang.String
getUsage()
prints the known command line flags.boolean
isAddDepth(double depth)
checks to see if the given depth has been "added" as a pierce point.static void
main(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)
void
printResultJSON(java.io.PrintWriter out)
void
printResultText(java.io.PrintWriter out)
void
setAddDepths(java.lang.String depthString)
sets depths for additional pierce points, ie depths that are not really discontinuities in the model.void
setOnlyAddPoints(boolean onlyAddPoints)
void
setOnlyRevPoints(boolean onlyRevPoints)
void
setOnlyTurnPoints(boolean onlyTurnPoints)
void
setOnlyUnderPoints(boolean onlyUnderPoints)
TauModel
splitPierceDepths(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 TauModelException
override depthCorrect so that we can put the pierce depths in.- Overrides:
depthCorrect
in 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:
calculate
in classTauP_Time
- Throws:
TauPException
-
printResultText
public void printResultText(java.io.PrintWriter out) throws java.io.IOException
- Overrides:
printResultText
in classTauP_Time
- Throws:
java.io.IOException
-
printResultJSON
public void printResultJSON(java.io.PrintWriter out)
- Overrides:
printResultJSON
in 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:
getLimitUsage
in 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:
parseCmdLineArgs
in classTauP_Time
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Allows TauP_Pierce to run as an application. Creates an instance of TauP_Pierce. ToolRun.main should be used instead.- Throws:
java.io.IOException
-
-