Package edu.sc.seis.TauP
Class TauP_ReflTransPlot
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_ReflTransPlot
-
public class TauP_ReflTransPlot extends TauP_Tool
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
absolute
protected double
angleStep
static java.lang.String
DEFAULT_OUTFILE
protected double
depth
protected boolean
indown
protected boolean
inpwave
protected boolean
inshwave
protected boolean
inswave
protected boolean
linearRayParam
protected java.lang.String
onlyPlotCoef
protected double
rayparamStep
protected double
step
-
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_ReflTransPlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
allowedOutputFormats()
java.lang.String
createTitle(ReflTrans reflTransCoef, boolean inpwave, boolean inswave)
void
destroy()
double
getAngleStep()
java.lang.String
getModelName()
void
init()
boolean
isAbsolute()
boolean
isInpwave()
boolean
isInshwave()
boolean
isInswave()
boolean
isLinearRayParam()
protected java.lang.String[]
parseCmdLineArgs(java.lang.String[] origArgs)
void
printSVG(java.io.PrintWriter out, double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)
void
printSVG(java.io.PrintWriter out, ReflTrans reflTranCoef, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double step, java.lang.String title)
void
printSVG(java.io.PrintWriter out, VelocityModel vMod, double depth, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)
void
printSVGBeginning(java.io.PrintWriter out)
void
printUsage()
protected void
processType(java.io.PrintWriter out, ReflTrans reflTranCoef, double minX, double maxX, double step, boolean linearRayParam, double oneOverV, java.lang.String label, java.util.List<java.lang.String> labels, java.util.List<java.lang.String> labelClass, edu.sc.seis.TauP.CalcReflTranFunction<java.lang.Double,java.lang.Double> calcFn)
void
setAbsolute(boolean absolute)
void
setAngleStep(double angleStep)
void
setDepth(double depth)
void
setIncidentDown(boolean indown)
void
setIncidentPWave(boolean inpwave)
void
setIncidentShWave(boolean inshwave)
void
setIncidentSWave(boolean inswave)
void
setInpwave(boolean inpwave)
void
setInswave(boolean inswave)
void
setLayerParams(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)
void
setLinearRayParam(boolean linearRayParam)
void
setModelName(java.lang.String modelName)
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
-
angleStep
protected double angleStep
-
rayparamStep
protected double rayparamStep
-
step
protected double step
-
indown
protected boolean indown
-
inpwave
protected boolean inpwave
-
inswave
protected boolean inswave
-
inshwave
protected boolean inshwave
-
linearRayParam
protected boolean linearRayParam
-
absolute
protected boolean absolute
-
onlyPlotCoef
protected java.lang.String onlyPlotCoef
-
-
Method Detail
-
allowedOutputFormats
public java.lang.String[] allowedOutputFormats()
- Specified by:
allowedOutputFormats
in classTauP_Tool
-
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
-
start
public void start() throws java.io.IOException, TauModelException, TauPException
- Specified by:
start
in classTauP_Tool
- Throws:
java.io.IOException
TauModelException
TauPException
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
printUsage
public void printUsage()
- Specified by:
printUsage
in classTauP_Tool
-
validateArguments
public void validateArguments() throws TauModelException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauModelException
-
printSVGBeginning
public void printSVGBeginning(java.io.PrintWriter out)
-
printSVG
public void printSVG(java.io.PrintWriter out, VelocityModel vMod, double depth, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep) throws VelocityModelException
- Throws:
VelocityModelException
-
printSVG
public void printSVG(java.io.PrintWriter out, double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep) throws VelocityModelException
- Throws:
VelocityModelException
-
createTitle
public java.lang.String createTitle(ReflTrans reflTransCoef, boolean inpwave, boolean inswave)
-
printSVG
public void printSVG(java.io.PrintWriter out, ReflTrans reflTranCoef, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double step, java.lang.String title) throws VelocityModelException
- Throws:
VelocityModelException
-
processType
protected void processType(java.io.PrintWriter out, ReflTrans reflTranCoef, double minX, double maxX, double step, boolean linearRayParam, double oneOverV, java.lang.String label, java.util.List<java.lang.String> labels, java.util.List<java.lang.String> labelClass, edu.sc.seis.TauP.CalcReflTranFunction<java.lang.Double,java.lang.Double> calcFn) throws VelocityModelException
- Throws:
VelocityModelException
-
setDepth
public void setDepth(double depth)
-
setLayerParams
public void setLayerParams(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)
-
setModelName
public void setModelName(java.lang.String modelName)
-
getModelName
public java.lang.String getModelName()
-
setIncidentDown
public void setIncidentDown(boolean indown)
-
setIncidentPWave
public void setIncidentPWave(boolean inpwave)
-
setIncidentSWave
public void setIncidentSWave(boolean inswave)
-
setIncidentShWave
public void setIncidentShWave(boolean inshwave)
-
isAbsolute
public boolean isAbsolute()
-
setAbsolute
public void setAbsolute(boolean absolute)
-
isLinearRayParam
public boolean isLinearRayParam()
-
isInpwave
public boolean isInpwave()
-
setInpwave
public void setInpwave(boolean inpwave)
-
isInswave
public boolean isInswave()
-
isInshwave
public boolean isInshwave()
-
setInswave
public void setInswave(boolean inswave)
-
setLinearRayParam
public void setLinearRayParam(boolean linearRayParam)
-
setAngleStep
public void setAngleStep(double angleStep)
-
getAngleStep
public double getAngleStep()
-
-