Package edu.sc.seis.TauP
Class TauP_VelocityPlot
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_VelocityPlot
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_VelocityPlot extends TauP_Tool
Creates plots of a velocity model.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_OUTFILE
boolean
listDiscon
protected double[]
xAxisMinMax
protected double[]
yAxisMinMax
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
abstractOutputTypeArgs, cmdLineArgs, toolProps
-
-
Constructor Summary
Constructors Constructor Description TauP_VelocityPlot()
-
Method Summary
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
call, configDefaults, endGmtAndCleanUp, getModDepthUsage, getOutFileBase, getStdUsageHead, getStdUsageTail, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
-
-
-
Field Detail
-
DEFAULT_OUTFILE
public static final java.lang.String DEFAULT_OUTFILE
- See Also:
- Constant Field Values
-
listDiscon
public boolean listDiscon
-
xAxisMinMax
protected double[] xAxisMinMax
-
yAxisMinMax
protected double[] yAxisMinMax
-
-
Method Detail
-
start
public void start() throws TauPException, java.io.IOException
- Specified by:
start
in classTauP_Tool
- Throws:
TauPException
java.io.IOException
-
printResult
public void printResult(java.io.PrintWriter writer, XYPlotOutput xyOut)
-
printCSV
public void printCSV(java.io.PrintWriter out, VelocityModel vMod)
-
init
public void init() throws TauPException
- Specified by:
init
in classTauP_Tool
- Throws:
TauPException
-
labelFor
public java.lang.String labelFor(ModelAxisType axisType)
-
depthLike
public boolean depthLike(ModelAxisType axisType)
-
velocityLike
public boolean velocityLike(ModelAxisType axisType)
-
slownessLike
public boolean slownessLike(ModelAxisType axisType)
-
dependentAxis
public ModelAxisType dependentAxis(ModelAxisType xAxisType, ModelAxisType yAxisType)
-
calculateAtDepth
public static double calculateAtDepth(VelocityModel vMod, ModelAxisType axisType, double depth, boolean above) throws NoSuchLayerException, TauModelException
-
calculateAtDepth
public static double calculateAtDepth(TauModel tMod, ModelAxisType axisType, double depth, boolean above) throws NoSuchLayerException, TauModelException
-
calculate
public java.util.List<XYPlottingData> calculate(InputVelocityModelArgs velModelArgs, ModelAxisType xAxis, ModelAxisType yAxis, java.lang.String labelPrefix) throws VelocityModelException, java.io.IOException, TauModelException, SlownessModelException
- Throws:
VelocityModelException
java.io.IOException
TauModelException
SlownessModelException
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
validateArguments
public void validateArguments() throws TauModelException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauModelException
-
getOutputTypeArgs
public VelPlotOutputTypeArgs getOutputTypeArgs()
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtension
in classTauP_Tool
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
getVelModelArgs
public VelocityModelListArgs getVelModelArgs()
-
getxAxisType
public ModelAxisType getxAxisType()
-
setxAxisType
public void setxAxisType(ModelAxisType xAxisType)
-
getyAxisType
public ModelAxisType getyAxisType()
-
setyAxisType
public void setyAxisType(ModelAxisType yAxisType)
-
getxAxisMinMax
public double[] getxAxisMinMax()
-
setxAxisMinMax
public void setxAxisMinMax(double[] xAxisMinMax)
-
getyAxisMinMax
public double[] getyAxisMinMax()
-
setyAxisMinMax
public void setyAxisMinMax(double[] yAxisMinMax)
-
-