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.StringDEFAULT_OUTFILEprotected doubledepthprotected doublereceiverDepthprotected doublescattererDepth-
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()voiddestroy()java.lang.StringgetModelName()doublegetReceiverDepth()doublegetScattererDepth()doublegetSourceDepth()java.lang.StringgetUsage()voidinit()protected java.lang.String[]parseCmdLineArgs(java.lang.String[] origArgs)voidprintCSV(java.io.PrintWriter out, VelocityModel vMod)voidprintResult(java.io.PrintWriter out)voidprintSVG(java.io.PrintWriter out, VelocityModel vMod)voidprintSVGBeginning(java.io.PrintWriter out)voidsetDefaultOutputFormat()voidsetModelName(java.lang.String modelName)voidsetReceiverDepth(double receiverDepth)voidsetScattererDepth(double depth)voidsetSourceDepth(double depth)voidstart()voidvalidateArguments()-
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
-
-
-
-
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 TauPException, java.io.IOException- Specified by:
startin classTauP_Tool- Throws:
TauPExceptionjava.io.IOException
-
printSVG
public void printSVG(java.io.PrintWriter out, VelocityModel vMod)
-
allowedOutputFormats
public java.lang.String[] allowedOutputFormats()
- Specified by:
allowedOutputFormatsin classTauP_Tool
-
setDefaultOutputFormat
public void setDefaultOutputFormat()
- Specified by:
setDefaultOutputFormatin classTauP_Tool
-
printResult
public void printResult(java.io.PrintWriter out) throws TauPException, java.io.IOException- Throws:
TauPExceptionjava.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:
parseCmdLineArgsin classTauP_Tool- Throws:
java.io.IOException
-
init
public void init() throws TauPException- Specified by:
initin classTauP_Tool- Throws:
TauPException
-
destroy
public void destroy() throws TauPException- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
validateArguments
public void validateArguments() throws TauModelException- Specified by:
validateArgumentsin 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)
-
setModelName
public void setModelName(java.lang.String modelName)
-
getModelName
public java.lang.String getModelName()
-
-