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 booleanabsoluteprotected doubleangleStepstatic java.lang.StringDEFAULT_OUTFILEprotected doubledepthprotected booleanindownprotected booleaninpwaveprotected booleaninshwaveprotected booleaninswaveprotected booleanlinearRayParamprotected java.lang.StringonlyPlotCoefprotected doublerayparamStepprotected doublestep-
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.StringcreateTitle(ReflTrans reflTransCoef, boolean inpwave, boolean inswave)voiddestroy()doublegetAngleStep()java.lang.StringgetModelName()java.lang.StringgetUsage()voidinit()booleanisAbsolute()booleanisInpwave()booleanisInshwave()booleanisInswave()booleanisLinearRayParam()protected java.lang.String[]parseCmdLineArgs(java.lang.String[] origArgs)voidprintSVG(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)voidprintSVG(java.io.PrintWriter out, ReflTrans reflTranCoef, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double step, java.lang.String title)voidprintSVG(java.io.PrintWriter out, VelocityModel vMod, double depth, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)voidprintSVGBeginning(java.io.PrintWriter out)protected voidprocessType(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)voidsetAbsolute(boolean absolute)voidsetAngleStep(double angleStep)voidsetDefaultOutputFormat()voidsetDepth(double depth)voidsetIncidentDown(boolean indown)voidsetIncidentPWave(boolean inpwave)voidsetIncidentShWave(boolean inshwave)voidsetIncidentSWave(boolean inswave)voidsetInpwave(boolean inpwave)voidsetInswave(boolean inswave)voidsetLayerParams(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)voidsetLinearRayParam(boolean linearRayParam)voidsetModelName(java.lang.String modelName)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
-
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:
allowedOutputFormatsin classTauP_Tool
-
setDefaultOutputFormat
public void setDefaultOutputFormat()
- Specified by:
setDefaultOutputFormatin classTauP_Tool
-
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
-
start
public void start() throws java.io.IOException, TauModelException, TauPException- Specified by:
startin classTauP_Tool- Throws:
java.io.IOExceptionTauModelExceptionTauPException
-
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
-
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()
-
-