Package edu.sc.seis.TauP
Class TauP_VelocityPlot
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_VelocityPlot
-
- Direct Known Subclasses:
TauP_SlownessPlot
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
depth
protected double
receiverDepth
protected double
scattererDepth
-
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_VelocityPlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
allowedOutputFormats()
void
destroy()
java.lang.String
getModelName()
double
getReceiverDepth()
double
getScattererDepth()
double
getSourceDepth()
void
init()
protected java.lang.String[]
parseCmdLineArgs(java.lang.String[] origArgs)
void
printCSV(java.io.PrintWriter out, VelocityModel vMod)
void
printResult(java.io.PrintWriter out)
void
printSVG(java.io.PrintWriter out, VelocityModel vMod)
void
printSVGBeginning(java.io.PrintWriter out)
void
printUsage()
void
setModelName(java.lang.String modelName)
void
setReceiverDepth(double receiverDepth)
void
setScattererDepth(double depth)
void
setSourceDepth(double depth)
void
start()
void
validateArguments()
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
closeWriter, configDefaults, dashEquals, endGmtAndCleanUp, getOutFile, getOutFileBase, getOutFileExtension, getOutputFormat, getWriter, parseCommonCmdLineArgs, printModDepthUsage, printNoComprendoArgs, printScriptBeginning, printStdUsageHead, printStdUsageTail, setOutFileBase, setOutFileExtension, setOutputFormat, setWriter, toolNameFromClass
-
-
-
-
Field Detail
-
DEFAULT_OUTFILE
public static final java.lang.String DEFAULT_OUTFILE
- See Also:
- Constant Field Values
-
depth
protected double depth
-
receiverDepth
protected double receiverDepth
-
scattererDepth
protected double scattererDepth
-
-
Method Detail
-
start
public void start() throws SlownessModelException, TauModelException, VelocityModelException, java.io.IOException
- Specified by:
start
in classTauP_Tool
- Throws:
SlownessModelException
TauModelException
VelocityModelException
java.io.IOException
-
printSVG
public void printSVG(java.io.PrintWriter out, VelocityModel vMod)
-
allowedOutputFormats
public java.lang.String[] allowedOutputFormats()
- Specified by:
allowedOutputFormats
in classTauP_Tool
-
printResult
public void printResult(java.io.PrintWriter out) throws TauPException, java.io.IOException
- Throws:
TauPException
java.io.IOException
-
printSVGBeginning
public void printSVGBeginning(java.io.PrintWriter out)
-
printCSV
public void printCSV(java.io.PrintWriter out, VelocityModel vMod)
-
parseCmdLineArgs
protected java.lang.String[] parseCmdLineArgs(java.lang.String[] origArgs) throws java.io.IOException
- Specified by:
parseCmdLineArgs
in classTauP_Tool
- Throws:
java.io.IOException
-
init
public void init() throws TauPException
- Specified by:
init
in classTauP_Tool
- Throws:
TauPException
-
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
-
getSourceDepth
public double getSourceDepth()
-
setSourceDepth
public void setSourceDepth(double depth)
-
getReceiverDepth
public double getReceiverDepth()
-
setReceiverDepth
public void setReceiverDepth(double receiverDepth)
-
getScattererDepth
public double getScattererDepth()
-
setScattererDepth
public void setScattererDepth(double depth)
-
printUsage
public void printUsage()
- Specified by:
printUsage
in classTauP_Tool
-
setModelName
public void setModelName(java.lang.String modelName)
-
getModelName
public java.lang.String getModelName()
-
-