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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Doubleprotected Doublethe reducing velocity to use if reduceTime == true, in units of radians/second .protected Doubleprotected Stringprotected Stringprotected booleanprotected booleanprotected double[]protected AxisTypeprotected booleanprotected booleanprotected double[]protected AxisTypeFields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
phaseNamesFields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrivalAtIndex(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.calculateLinear(AxisType xAxisType, AxisType yAxisType) List<double[]>calculatePlotForType(SeismicPhase phase, AxisType axisType, boolean ensure180) protected List<double[]>calculatePlotForTypeContig(SeismicPhase phase, AxisType axisType, boolean ensure180) voiddestroy()doubledouble[]double[]voidinit()preforms intialization of the tool.booleanbooleanbooleanbooleanbooleanvoidprintResult(PrintWriter writer, List<XYPlottingData> xyPlots) reduce(List<XYPlottingData> xy) reduceVelForAxis(AxisType axisType) voidsetReduceVelDeg(double reduceVel) set the reducing velocity, in degrees/second.voidsetReduceVelKm(double reduceVel) set the reducing velocity, in kilometers/second.voidsetRelativePhaseName(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()voidMethods 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, setTauModelMethods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
Field Details
-
relativePhaseName
-
xAxisType
-
yAxisType
-
azimuth
-
xAxisAbs
protected boolean xAxisAbs -
yAxisAbs
protected boolean yAxisAbs -
xAxisLog
protected boolean xAxisLog -
yAxisLog
protected boolean yAxisLog -
reduceVelDeg
the reducing velocity to use if reduceTime == true, in units of radians/second . -
reduceVelKm
-
redVelString
-
xAxisMinMax
protected double[] xAxisMinMax -
yAxisMinMax
protected double[] yAxisMinMax
-
-
Constructor Details
-
TauP_Curve
public TauP_Curve()
-
-
Method Details
-
init
preforms 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
- Specified by:
startin classTauP_Tool- Throws:
IOExceptionTauPException
-
calculate
- Throws:
TauPException
-
calculateLinear
public List<XYPlottingData> calculateLinear(AxisType xAxisType, AxisType yAxisType) throws TauPException - Throws:
TauPException
-
reduce
- Throws:
TauModelException
-
calculatePlotForType
public List<double[]> calculatePlotForType(SeismicPhase phase, AxisType axisType, boolean ensure180) throws SlownessModelException, TauModelException -
calculatePlotForTypeContig
protected List<double[]> calculatePlotForTypeContig(SeismicPhase phase, AxisType axisType, boolean ensure180) throws SlownessModelException, TauModelException -
arrivalAtIndex
public Arrival arrivalAtIndex(int i, SeismicPhase phase) throws SlownessModelException, TauModelException -
printResult
- Throws:
TauPException
-
destroy
- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
axisIsDistanceLike
True if the axis type is distance-like. -
axisIsTimeLike
True if the axis type is time. -
validateArguments
- Specified by:
validateArgumentsin classTauP_Tool- Throws:
TauModelException
-
getxAxisType
-
setxAxisType
-
getyAxisType
-
setyAxisType
-
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
-
isReduceTime
public boolean isReduceTime() -
getRelativePhaseName
-
setRelativePhaseName
-
getReduceVelRadian
public double getReduceVelRadian()- Returns:
- reducing velocity in degrees/second. The internal usage is radians/second.
-
getReduceVelDeg
-
setReduceVelDeg
public void setReduceVelDeg(double reduceVel) set the reducing velocity, in degrees/second. The internal representation is radians/second. -
getReduceVelKm
- Returns:
- reducing velocity in kilometers/second. The internal usage is radians/second.
-
reduceVelForAxis
- Throws:
TauModelException
-
setReduceVelKm
public void setReduceVelKm(double reduceVel) set the reducing velocity, in kilometers/second. The internal representation is radians/second. -
getRedVelLabel
-
getOutputFormat
- Specified by:
getOutputFormatin classTauP_Tool
-
getOutFileExtension
- Overrides:
getOutFileExtensionin classTauP_Tool
-
setxMinMax
public void setxMinMax(double min, double max) -
setyMinMax
public void setyMinMax(double min, double max)
-