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
protected double[]
xAxisMinMax
protected double[]
yAxisMinMax
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
cmdLineArgs, outFileBase, outputFormat, outputType, toolProps, writer
-
-
Constructor Summary
Constructors Constructor Description TauP_VelocityPlot()
-
Method Summary
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
call, configDefaults, dashEquals, endGmtAndCleanUp, getModDepthUsage, getOutFileBase, getStdUsageHead, getStdUsageTail, isDEBUG, isVerbose, parseOutputFormatCmdLineArgs, printNoComprendoArgs, printScriptBeginning, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, setWriter, toolNameFromClass
-
-
-
-
Field Detail
-
DEFAULT_OUTFILE
public static final java.lang.String DEFAULT_OUTFILE
- See Also:
- Constant Field Values
-
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)
-
allowedOutputFormats
public java.lang.String[] allowedOutputFormats()
- Specified by:
allowedOutputFormats
in classTauP_Tool
-
setDefaultOutputFormat
public void setDefaultOutputFormat()
- Specified by:
setDefaultOutputFormat
in classTauP_Tool
-
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)
-
calculate
public java.util.List<XYPlottingData> calculate(VelocityModelArgs velModelArgs, ModelAxisType xAxis, ModelAxisType yAxis, java.lang.String labelPrefix) throws VelocityModelException, java.io.IOException, TauModelException, SlownessModelException
- Throws:
VelocityModelException
java.io.IOException
TauModelException
SlownessModelException
-
calculateForVelocityModel
public java.util.List<java.lang.Double> calculateForVelocityModel(ModelAxisType axisType, VelocityModel vMod)
-
calculateForSlownessModel
public java.util.List<java.lang.Double> calculateForSlownessModel(ModelAxisType axisType, SlownessModel sMod, boolean useWavetype) throws SlownessModelException
- Throws:
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 GraphicOutputTypeArgs 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 java.util.List<VelocityModelArgs> getVelModelArgs()
-
setCsvOutput
public void setCsvOutput(boolean isCsv)
-
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)
-
-