Package edu.sc.seis.TauP
Class TauP_ReflTransPlot
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_ReflTransPlot
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_ReflTransPlot extends TauP_Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TauP_ReflTransPlot.DegRayParam
-
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 double
rayparamStep
protected double
step
protected double[]
xAxisMinMax
protected TauP_ReflTransPlot.DegRayParam
xAxisType
protected double[]
yAxisMinMax
protected java.util.List<ReflTransAxisType>
yAxisType
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
abstractOutputTypeArgs, cmdLineArgs, toolProps
-
-
Constructor Summary
Constructors Constructor Description TauP_ReflTransPlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<XYPlottingData>
calculate(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)
java.util.List<XYPlottingData>
calculate(ReflTrans reflTranCoef, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double step)
java.util.List<XYPlottingData>
calculate(VelocityModel vMod, double depth, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)
protected XYPlottingData
calculateForType(ReflTrans reflTranCoef, double minX, double maxX, double step, boolean linearRayParam, double oneOverV, java.lang.String label, edu.sc.seis.TauP.CalcReflTranFunction<java.lang.Double,java.lang.Double> calcFn)
java.lang.String
createTitle(ReflTrans reflTransCoef, boolean inpwave, boolean inswave)
void
destroy()
double
getAngleStep()
double
getDepth()
ModelArgs
getModelArgs()
java.lang.String
getOutputFormat()
double
getRayparamStep()
double[]
getxAxisMinMax()
TauP_ReflTransPlot.DegRayParam
getxAxisType()
double[]
getyAxisMinMax()
java.util.List<ReflTransAxisType>
getyAxisType()
void
init()
boolean
isAbsolute()
boolean
isIncidentPWave()
boolean
isIncidentShWave()
boolean
isIncidentSWave()
boolean
isInpwave()
boolean
isInshwave()
boolean
isInswave()
boolean
isLinearRayParam()
void
printResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots)
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
setIncidentUp(boolean inup)
void
setLayerParams(double[] params)
void
setLayerParams(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)
void
setRayparamStep(double rayparamStep)
void
setxAxisMinMax(double[] xAxisMinMax)
void
setxAxisType(TauP_ReflTransPlot.DegRayParam xAxisType)
void
setyAxisMinMax(double[] yAxisMinMax)
void
setyAxisType(java.util.List<ReflTransAxisType> yAxisType)
void
start()
void
validateArguments()
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
call, configDefaults, endGmtAndCleanUp, getModDepthUsage, getOutFileBase, getOutFileExtension, getStdUsageHead, getStdUsageTail, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, 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
-
xAxisType
protected TauP_ReflTransPlot.DegRayParam xAxisType
-
yAxisType
protected java.util.List<ReflTransAxisType> yAxisType
-
xAxisMinMax
protected double[] xAxisMinMax
-
yAxisMinMax
protected double[] yAxisMinMax
-
step
protected double step
-
indown
protected boolean indown
-
inpwave
protected boolean inpwave
-
inswave
protected boolean inswave
-
inshwave
protected boolean inshwave
-
absolute
protected boolean absolute
-
-
Method Detail
-
init
public void init() throws TauPException
- Specified by:
init
in classTauP_Tool
- Throws:
TauPException
-
start
public void start() throws java.io.IOException, TauPException
- Specified by:
start
in classTauP_Tool
- Throws:
java.io.IOException
TauPException
-
printResult
public void printResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots)
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
validateArguments
public void validateArguments() throws TauPException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauPException
-
calculate
public java.util.List<XYPlottingData> calculate(VelocityModel vMod, double depth, boolean downgoing, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep) throws VelocityModelException
- Throws:
VelocityModelException
-
calculate
public java.util.List<XYPlottingData> calculate(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)
-
calculate
public java.util.List<XYPlottingData> calculate(ReflTrans reflTranCoef, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double step) throws VelocityModelException
- Throws:
VelocityModelException
-
calculateForType
protected XYPlottingData calculateForType(ReflTrans reflTranCoef, double minX, double maxX, double step, boolean linearRayParam, double oneOverV, java.lang.String label, edu.sc.seis.TauP.CalcReflTranFunction<java.lang.Double,java.lang.Double> calcFn) throws VelocityModelException
- Throws:
VelocityModelException
-
getDepth
public double getDepth()
-
setDepth
public void setDepth(double depth)
-
setLayerParams
public void setLayerParams(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
setIncidentDown
public void setIncidentDown(boolean indown)
-
setIncidentUp
public void setIncidentUp(boolean inup)
-
setIncidentPWave
public void setIncidentPWave(boolean inpwave)
-
isIncidentPWave
public boolean isIncidentPWave()
-
setIncidentSWave
public void setIncidentSWave(boolean inswave)
-
isIncidentSWave
public boolean isIncidentSWave()
-
setIncidentShWave
public void setIncidentShWave(boolean inshwave)
-
isIncidentShWave
public boolean isIncidentShWave()
-
isAbsolute
public boolean isAbsolute()
-
setAbsolute
public void setAbsolute(boolean absolute)
-
setLayerParams
public void setLayerParams(double[] params)
-
getxAxisType
public TauP_ReflTransPlot.DegRayParam getxAxisType()
-
setxAxisType
public void setxAxisType(TauP_ReflTransPlot.DegRayParam xAxisType)
-
getyAxisType
public java.util.List<ReflTransAxisType> getyAxisType()
-
setyAxisType
public void setyAxisType(java.util.List<ReflTransAxisType> yAxisType)
-
getxAxisMinMax
public double[] getxAxisMinMax()
-
setxAxisMinMax
public void setxAxisMinMax(double[] xAxisMinMax)
-
getyAxisMinMax
public double[] getyAxisMinMax()
-
setyAxisMinMax
public void setyAxisMinMax(double[] yAxisMinMax)
-
isLinearRayParam
public boolean isLinearRayParam()
-
isInpwave
public boolean isInpwave()
-
isInswave
public boolean isInswave()
-
isInshwave
public boolean isInshwave()
-
setAngleStep
public void setAngleStep(double angleStep)
-
getAngleStep
public double getAngleStep()
-
getRayparamStep
public double getRayparamStep()
-
setRayparamStep
public void setRayparamStep(double rayparamStep)
-
getModelArgs
public ModelArgs getModelArgs()
-
-