Package edu.sc.seis.TauP.cmdline
Class TauP_ReflTransPlot
- java.lang.Object
-
- edu.sc.seis.TauP.cmdline.TauP_Tool
-
- edu.sc.seis.TauP.cmdline.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 classTauP_ReflTransPlot.DegRayParam
-
Field Summary
Fields Modifier and Type Field Description protected booleanabsoluteprotected booleananglesprotected doubleangleStepstatic java.lang.StringDEFAULT_OUTFILEprotected doubledepthprotected java.lang.StringdepthNameprotected booleanenergyfluxprotected booleanfsrfprotected java.lang.Booleanindownprotected booleaninpwaveprotected booleaninshwaveprotected booleaninswaveprotected doublerayparamStepprotected doublestepprotected double[]xAxisMinMaxprotected TauP_ReflTransPlot.DegRayParamxAxisTypeprotected double[]yAxisMinMaxprotected java.util.List<ReflTransAxisType>yAxisType-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, 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 XYPlottingDatacalculateForType(ReflTrans reflTranCoef, double minX, double maxX, double step, boolean linearRayParam, double oneOverV, ReflTransAxisType label, edu.sc.seis.TauP.cmdline.CalcReflTranFunction<java.lang.Double,java.lang.Double> calcFn)java.util.List<XYPlottingData>calculateFSRF(double pVel, double sVel, double rho, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)java.util.List<XYPlottingData>calculateFSRF(VelocityModel vMod, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep)java.lang.StringcreateTitle(ReflTrans reflTransCoef, boolean inpwave, boolean inswave)voiddestroy()doublegetAngleStep()doublegetDepth()ModelArgsgetModelArgs()java.lang.StringgetOutputFormat()doublegetRayparamStep()double[]getxAxisMinMax()TauP_ReflTransPlot.DegRayParamgetxAxisType()double[]getyAxisMinMax()java.util.List<ReflTransAxisType>getyAxisType()voidinit()booleanisAbsolute()booleanisAngles()booleanisEnergyFlux()booleanisFreeSurfRF()booleanisIncidentDown()booleanisIncidentPWave()booleanisIncidentShWave()booleanisIncidentSWave()booleanisInpwave()booleanisInshwave()booleanisInswave()booleanisLinearRayParam()voidprintResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots)voidsetAbsolute(boolean absolute)voidsetAngles(boolean angles)voidsetAngleStep(double angleStep)voidsetDepth(double depth)voidsetDepth(java.lang.String depthOrName)voidsetEnergyFlux(boolean energyFlux)voidsetFreeSurfRF(boolean fsrf)voidsetIncidentDown(boolean indown)voidsetIncidentPWave(boolean inpwave)voidsetIncidentShWave(boolean inshwave)voidsetIncidentSWave(boolean inswave)voidsetIncidentUp(boolean inup)voidsetLayerParams(double[] params)voidsetLayerParams(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)voidsetRayparamStep(double rayparamStep)voidsetxAxisMinMax(double[] xAxisMinMax)voidsetxAxisType(TauP_ReflTransPlot.DegRayParam xAxisType)voidsetyAxisMinMax(double[] yAxisMinMax)voidsetyAxisType(java.util.List<ReflTransAxisType> yAxisType)voidstart()voidvalidateArguments()-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, getOutFileExtension, 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
-
depthName
protected java.lang.String depthName
-
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 java.lang.Boolean indown
-
inpwave
protected boolean inpwave
-
inswave
protected boolean inswave
-
inshwave
protected boolean inshwave
-
absolute
protected boolean absolute
-
angles
protected boolean angles
-
energyflux
protected boolean energyflux
-
fsrf
protected boolean fsrf
-
-
Method Detail
-
init
public void init() throws TauPException- Specified by:
initin classTauP_Tool- Throws:
TauPException
-
start
public void start() throws java.io.IOException, TauPException- Specified by:
startin classTauP_Tool- Throws:
java.io.IOExceptionTauPException
-
printResult
public void printResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots)
-
destroy
public void destroy() throws TauPException- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
validateArguments
public void validateArguments() throws TauPException- Specified by:
validateArgumentsin classTauP_Tool- Throws:
TauPException
-
calculateFSRF
public java.util.List<XYPlottingData> calculateFSRF(double pVel, double sVel, double rho, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep) throws VelocityModelException
- Throws:
VelocityModelException
-
calculateFSRF
public java.util.List<XYPlottingData> calculateFSRF(VelocityModel vMod, boolean inpwave, boolean inswave, boolean inshwave, boolean linearRayParam, double angleStep) throws VelocityModelException
- Throws:
VelocityModelException
-
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, ReflTransAxisType label, edu.sc.seis.TauP.cmdline.CalcReflTranFunction<java.lang.Double,java.lang.Double> calcFn) throws VelocityModelException
- Throws:
VelocityModelException
-
getDepth
public double getDepth() throws TauModelException- Throws:
TauModelException
-
setDepth
public void setDepth(java.lang.String depthOrName)
-
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:
getOutputFormatin classTauP_Tool
-
setIncidentDown
public void setIncidentDown(boolean indown)
-
setIncidentUp
public void setIncidentUp(boolean inup)
-
isIncidentDown
public boolean isIncidentDown()
-
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()
-
setEnergyFlux
public void setEnergyFlux(boolean energyFlux)
-
isEnergyFlux
public boolean isEnergyFlux()
-
setFreeSurfRF
public void setFreeSurfRF(boolean fsrf)
-
isFreeSurfRF
public boolean isFreeSurfRF()
-
setAngles
public void setAngles(boolean angles)
-
isAngles
public boolean isAngles()
-
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()
-
-