Package edu.sc.seis.TauP.cmdline
Class TauP_Curve
- java.lang.Object
-
- edu.sc.seis.TauP.cmdline.TauP_Tool
-
- edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
-
- edu.sc.seis.TauP.cmdline.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.Doubleazimuthprotected java.lang.DoublereduceVelDegthe reducing velocity to use if reduceTime == true, in units of radians/second .protected java.lang.DoublereduceVelKmprotected java.lang.StringredVelStringprotected java.lang.StringrelativePhaseNameprotected booleanxAxisAbsprotected booleanxAxisLogprotected double[]xAxisMinMaxprotected AxisTypexAxisTypeprotected booleanyAxisAbsprotected booleanyAxisLogprotected double[]yAxisMinMaxprotected AxisTypeyAxisType-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
phaseNames
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps
-
-
Constructor Summary
Constructors Constructor Description TauP_Curve()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrivalarrivalAtIndex(int i, SeismicPhase phase)static booleanaxisIsDistanceLike(AxisType axisType)True if the axis type is distance-like.static booleanaxisIsTimeLike(AxisType axisType)True if the axis type is time.java.lang.StringaxisLabel(AxisType axisType)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)protected java.util.List<double[]>calculatePlotForTypeContig(SeismicPhase phase, AxisType axisType, boolean ensure180)voiddestroy()java.lang.StringgetOutFileExtension()java.lang.StringgetOutputFormat()java.lang.DoublegetReduceVelDeg()java.lang.DoublegetReduceVelKm()doublegetReduceVelRadian()java.lang.StringgetRedVelLabel()java.lang.StringgetRelativePhaseName()double[]getxAxisMinMax()AxisTypegetxAxisType()double[]getyAxisMinMax()AxisTypegetyAxisType()voidinit()preforms intialization of the tool.booleanisReduceTime()booleanisxAxisAbs()booleanisxAxisLog()booleanisyAxisAbs()booleanisyAxisLog()voidprintResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots)java.util.List<XYPlottingData>reduce(java.util.List<XYPlottingData> xy)java.lang.DoublereduceVelForAxis(AxisType axisType)voidsetReduceVelDeg(double reduceVel)set the reducing velocity, in degrees/second.voidsetReduceVelKm(double reduceVel)set the reducing velocity, in kilometers/second.voidsetRelativePhaseName(java.lang.String relativePhaseName)voidsetxAxisAbs(boolean xAxisAbs)voidsetxAxisLog(boolean xAxisLog)voidsetxAxisMinMax(double[] xAxisMinMax)voidsetxAxisType(AxisType xAxisType)voidsetxMinMax(double min, double max)voidsetyAxisAbs(boolean yAxisAbs)voidsetyAxisLog(boolean yAxisLog)voidsetyAxisMinMax(double[] yAxisMinMax)voidsetyAxisType(AxisType yAxisType)voidsetyMinMax(double min, double max)voidstart()voidvalidateArguments()-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
appendPhaseName, appendPhaseName, calcSeismicPhases, calcSeismicPhases, clearPhaseNames, clearPhases, createTimeResult, getNumPhases, getPhaseArgs, getRadiusOfEarth, getReceiverDepths, getScatterer, getScattererDepth, getSeismicPhases, getSourceDepths, getTauModelDepthCorrected, getTauModelName, parsePhaseNameList, setModelName, setPhaseNameList, setPhaseNames, setScatterer, setSingleReceiverDepth, setSingleSourceDepth, setTauModel
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, 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
-
azimuth
protected java.lang.Double azimuth
-
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 TauPExceptionpreforms intialization of the tool. Properties are queried for the default model to load, source depth to use, phases to use, etc.- Overrides:
initin classTauP_AbstractPhaseTool- Throws:
TauPException
-
start
public void start() throws java.io.IOException, TauPException- Specified by:
startin classTauP_Tool- Throws:
java.io.IOExceptionTauPException
-
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 TauPException
- Throws:
TauPException
-
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 SlownessModelException, TauModelException
-
calculatePlotForTypeContig
protected java.util.List<double[]> calculatePlotForTypeContig(SeismicPhase phase, AxisType axisType, boolean ensure180) throws SlownessModelException, TauModelException
-
arrivalAtIndex
public Arrival arrivalAtIndex(int i, SeismicPhase phase) throws SlownessModelException, NoSuchLayerException
-
printResult
public void printResult(java.io.PrintWriter writer, java.util.List<XYPlottingData> xyPlots) throws TauPException- Throws:
TauPException
-
destroy
public void destroy() throws TauPException- Specified by:
destroyin 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:
validateArgumentsin 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)
-
axisLabel
public java.lang.String axisLabel(AxisType axisType)
-
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:
getOutputFormatin classTauP_Tool
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtensionin classTauP_Tool
-
setxMinMax
public void setxMinMax(double min, double max)
-
setyMinMax
public void setyMinMax(double min, double max)
-
-