Package edu.sc.seis.TauP.cmdline
Class TauP_Path
- 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_Path
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Path extends TauP_AbstractRayTool
Calculate travel paths for different phases using a linear interpolated ray parameter between known slowness samples.
-
-
Field Summary
Fields Modifier and Type Field Description protected static doublemaxPathIncprotected floatmaxPathTimeprotected booleanwithTime-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Arrival>calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> shootables)voiddestroy()double[]getDepthAxisMinMax()GraphicOutputTypeArgsgetGraphicOutputTypeArgs()floatgetMapWidth()Gets the gmt map width to be used with the output script and for creating the circles for each discontinuity.java.lang.StringgetMapWidthUnit()static doublegetMaxPathInc()floatgetMaxPathTime()java.lang.StringgetOutFileExtension()java.lang.StringgetOutputFormat()voidinit()booleanisWithTime()voidlabelPathsSVG(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)voidprintLabelsGMT(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)voidprintResult(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)voidprintScriptBeginningSVG(java.io.PrintWriter out, java.util.List<Arrival> arrivalList, float pixelWidth, DistDepthRange distDepthRange, ModelArgs modelArgs, java.util.List<java.lang.String> cmdLineArgs)voidsetMapWidth(float mapWidth)Sets the gmt map width to be used with the output script and for creating the circles for each discontinuity.voidsetMapWidthUnit(java.lang.String mapWidthUnit)static voidsetMaxPathInc(double max)voidsetMaxPathTime(float maxPathTime)voidsetWithTime(boolean withTime)voidstart()voidvalidateArguments()-
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, 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
-
-
-
-
Method Detail
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtensionin classTauP_Tool
-
setMapWidth
public void setMapWidth(float mapWidth)
Sets the gmt map width to be used with the output script and for creating the circles for each discontinuity. Default is 6 inches.
-
getMapWidth
public float getMapWidth()
Gets the gmt map width to be used with the output script and for creating the circles for each discontinuity.
-
getMapWidthUnit
public java.lang.String getMapWidthUnit()
-
setMapWidthUnit
public void setMapWidthUnit(java.lang.String mapWidthUnit)
-
getMaxPathTime
public float getMaxPathTime()
-
setMaxPathTime
public void setMaxPathTime(float maxPathTime)
-
isWithTime
public boolean isWithTime()
-
setWithTime
public void setWithTime(boolean withTime)
-
getDepthAxisMinMax
public double[] getDepthAxisMinMax()
-
getMaxPathInc
public static double getMaxPathInc()
-
setMaxPathInc
public static void setMaxPathInc(double max)
-
getGraphicOutputTypeArgs
public GraphicOutputTypeArgs getGraphicOutputTypeArgs()
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormatin classTauP_Tool
-
calcAll
public java.util.List<Arrival> calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> shootables) throws TauPException
- Specified by:
calcAllin classTauP_AbstractRayTool- Throws:
TauPException
-
destroy
public void destroy() throws TauPException- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
printResult
public void printResult(java.io.PrintWriter out, java.util.List<Arrival> arrivalList) throws java.io.IOException, TauPException- Specified by:
printResultin classTauP_AbstractRayTool- Throws:
java.io.IOExceptionTauPException
-
printLabelsGMT
public void printLabelsGMT(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
-
labelPathsSVG
public void labelPathsSVG(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
-
printScriptBeginningSVG
public void printScriptBeginningSVG(java.io.PrintWriter out, java.util.List<Arrival> arrivalList, float pixelWidth, DistDepthRange distDepthRange, ModelArgs modelArgs, java.util.List<java.lang.String> cmdLineArgs) throws TauPException- Throws:
TauPException
-
init
public void init() throws TauPException- Overrides:
initin classTauP_AbstractPhaseTool- Throws:
TauPException
-
start
public void start() throws java.io.IOException, TauPException- Specified by:
startin classTauP_Tool- Throws:
java.io.IOExceptionTauPException
-
validateArguments
public void validateArguments() throws TauPException- Overrides:
validateArgumentsin classTauP_AbstractRayTool- Throws:
TauPException
-
-