Package edu.sc.seis.TauP
Class TauP_Curve
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_AbstractPhaseTool
-
- edu.sc.seis.TauP.TauP_Curve
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Curve extends TauP_AbstractPhaseTool
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Double
reduceVelDeg
the reducing velocity to use if reduceTime == true, in units of radians/second .protected java.lang.Double
reduceVelKm
protected java.lang.String
redVelString
protected java.lang.String
relativePhaseName
protected boolean
xAxisAbs
protected boolean
xAxisLog
protected double[]
xAxisMinMax
protected AxisType
xAxisType
protected boolean
yAxisAbs
protected boolean
yAxisLog
protected double[]
yAxisMinMax
protected AxisType
yAxisType
-
Fields inherited from class edu.sc.seis.TauP.TauP_AbstractPhaseTool
DEFAULT_PHASES, phaseNames
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
abstractOutputTypeArgs, cmdLineArgs, toolProps
-
-
Constructor Summary
Constructors Constructor Description TauP_Curve()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
axisIsDistanceLike(AxisType axisType)
True if the axis type is distance-like.static boolean
axisIsTimeLike(AxisType axisType)
True if the axis type is time.java.util.List<XYPlottingData>
calculate(AxisType xAxisType, AxisType yAxisType)
java.util.List<XYPlottingData>
calculateLinear(AxisType xAxisType, AxisType yAxisType)
java.util.List<double[]>
calculatePlotForType(SeismicPhase phase, AxisType axisType, boolean ensure180)
void
destroy()
java.lang.String
getOutFileExtension()
java.lang.String
getOutputFormat()
java.lang.Double
getReduceVelDeg()
java.lang.Double
getReduceVelKm()
double
getReduceVelRadian()
java.lang.String
getRedVelLabel()
java.lang.String
getRelativePhaseName()
double[]
getxAxisMinMax()
AxisType
getxAxisType()
double[]
getyAxisMinMax()
AxisType
getyAxisType()
void
init()
preforms intialization of the tool.boolean
isReduceTime()
boolean
isxAxisAbs()
boolean
isxAxisLog()
boolean
isyAxisAbs()
boolean
isyAxisLog()
void
printResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots)
java.util.List<XYPlottingData>
reduce(java.util.List<XYPlottingData> xy)
java.lang.Double
reduceVelForAxis(AxisType axisType)
void
setReduceVelDeg(double reduceVel)
set the reducing velocity, in degrees/second.void
setReduceVelKm(double reduceVel)
set the reducing velocity, in kilometers/second.void
setRelativePhaseName(java.lang.String relativePhaseName)
void
setxAxisAbs(boolean xAxisAbs)
void
setxAxisLog(boolean xAxisLog)
void
setxAxisMinMax(double[] xAxisMinMax)
void
setxAxisType(AxisType xAxisType)
void
setxMinMax(double min, double max)
void
setyAxisAbs(boolean yAxisAbs)
void
setyAxisLog(boolean yAxisLog)
void
setyAxisMinMax(double[] yAxisMinMax)
void
setyAxisType(AxisType yAxisType)
void
setyMinMax(double min, double max)
void
start()
void
validateArguments()
-
Methods inherited from class edu.sc.seis.TauP.TauP_AbstractPhaseTool
appendPhaseName, appendPhaseName, baseResultAsJSONObject, clearPhaseNames, clearPhases, extractPhaseNames, getNumPhases, getPhaseNameList, getPhaseNames, getPhaseNameString, getPhaseUsage, getRadiusOfEarth, getReceiverDepth, getScatterer, getScattererDepth, getSeismicPhases, getSourceDepth, getTauModelDepthCorrected, getTauModelName, linearInterp, parsePhaseList, readPhaseFile, recalcPhases, setModelName, setPhaseNameList, setPhaseNames, setPhaseNames, setReceiverDepth, setScatterer, setSourceDepth, setTauModel, splitPhaseNameList
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
call, configDefaults, endGmtAndCleanUp, getModDepthUsage, getOutFileBase, getStdUsageHead, getStdUsageTail, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
-
-
-
Field Detail
-
relativePhaseName
protected java.lang.String relativePhaseName
-
xAxisType
protected AxisType xAxisType
-
yAxisType
protected AxisType yAxisType
-
xAxisAbs
protected boolean xAxisAbs
-
yAxisAbs
protected boolean yAxisAbs
-
xAxisLog
protected boolean xAxisLog
-
yAxisLog
protected boolean yAxisLog
-
reduceVelDeg
protected java.lang.Double reduceVelDeg
the reducing velocity to use if reduceTime == true, in units of radians/second .
-
reduceVelKm
protected java.lang.Double reduceVelKm
-
redVelString
protected java.lang.String redVelString
-
xAxisMinMax
protected double[] xAxisMinMax
-
yAxisMinMax
protected double[] yAxisMinMax
-
-
Method Detail
-
init
public void init() throws TauPException
preforms intialization of the tool. Properties are queried for the default model to load, source depth to use, phases to use, etc.- Overrides:
init
in classTauP_AbstractPhaseTool
- Throws:
TauPException
-
start
public void start() throws java.io.IOException, TauPException
- Specified by:
start
in classTauP_Tool
- Throws:
java.io.IOException
TauPException
-
calculate
public java.util.List<XYPlottingData> calculate(AxisType xAxisType, AxisType yAxisType) throws TauPException
- Throws:
TauPException
-
calculateLinear
public java.util.List<XYPlottingData> calculateLinear(AxisType xAxisType, AxisType yAxisType) throws TauModelException, VelocityModelException, SlownessModelException
-
reduce
public java.util.List<XYPlottingData> reduce(java.util.List<XYPlottingData> xy) throws TauModelException
- Throws:
TauModelException
-
calculatePlotForType
public java.util.List<double[]> calculatePlotForType(SeismicPhase phase, AxisType axisType, boolean ensure180) throws VelocityModelException, SlownessModelException, TauModelException
-
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
-
axisIsDistanceLike
public static boolean axisIsDistanceLike(AxisType axisType)
True if the axis type is distance-like.
-
axisIsTimeLike
public static boolean axisIsTimeLike(AxisType axisType)
True if the axis type is time.
-
validateArguments
public void validateArguments() throws TauModelException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauModelException
-
getxAxisType
public AxisType getxAxisType()
-
setxAxisType
public void setxAxisType(AxisType xAxisType)
-
getyAxisType
public AxisType getyAxisType()
-
setyAxisType
public void setyAxisType(AxisType yAxisType)
-
getxAxisMinMax
public double[] getxAxisMinMax()
-
setxAxisMinMax
public void setxAxisMinMax(double[] xAxisMinMax)
-
getyAxisMinMax
public double[] getyAxisMinMax()
-
setyAxisMinMax
public void setyAxisMinMax(double[] yAxisMinMax)
-
isxAxisAbs
public boolean isxAxisAbs()
-
setxAxisAbs
public void setxAxisAbs(boolean xAxisAbs)
-
isyAxisAbs
public boolean isyAxisAbs()
-
setyAxisAbs
public void setyAxisAbs(boolean yAxisAbs)
-
isxAxisLog
public boolean isxAxisLog()
-
setxAxisLog
public void setxAxisLog(boolean xAxisLog)
-
isyAxisLog
public boolean isyAxisLog()
-
setyAxisLog
public void setyAxisLog(boolean yAxisLog)
-
isReduceTime
public boolean isReduceTime()
-
getRelativePhaseName
public java.lang.String getRelativePhaseName()
-
setRelativePhaseName
public void setRelativePhaseName(java.lang.String relativePhaseName)
-
getReduceVelRadian
public double getReduceVelRadian()
- Returns:
- reducing velocity in degrees/second. The internal usage is radians/second.
-
getReduceVelDeg
public java.lang.Double getReduceVelDeg()
-
setReduceVelDeg
public void setReduceVelDeg(double reduceVel)
set the reducing velocity, in degrees/second. The internal representation is radians/second.
-
getReduceVelKm
public java.lang.Double getReduceVelKm()
- Returns:
- reducing velocity in kilometers/second. The internal usage is radians/second.
-
reduceVelForAxis
public java.lang.Double reduceVelForAxis(AxisType axisType) throws TauModelException
- Throws:
TauModelException
-
setReduceVelKm
public void setReduceVelKm(double reduceVel)
set the reducing velocity, in kilometers/second. The internal representation is radians/second.
-
getRedVelLabel
public java.lang.String getRedVelLabel()
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtension
in classTauP_Tool
-
setxMinMax
public void setxMinMax(double min, double max)
-
setyMinMax
public void setyMinMax(double min, double max)
-
-