Package edu.sc.seis.TauP
Class TauP_Table
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_AbstractPhaseTool
-
- edu.sc.seis.TauP.TauP_Table
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Table extends TauP_AbstractPhaseTool
Creates a table of travel times for a phase. Only uses the first arrival at any distance.
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]
depths
protected double[]
distances
protected java.lang.String
headerFile
static java.lang.String
LOCSAT
-
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_Table()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Arrival>
calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> shootables)
protected void
csvTable(java.io.PrintWriter out)
void
destroy()
protected void
genericTable(java.io.PrintWriter out)
java.lang.String
getHeaderFile()
java.lang.String
getOutFileExtension()
java.lang.String
getOutputFormat()
void
init()
protected void
jsonTable(java.io.PrintWriter out)
protected void
locsatTable(java.io.PrintWriter out)
static void
main(java.lang.String[] args)
ToolRun.main should be used instead.protected java.util.List<SeismicPhase>
recalcPhases(java.util.List<PhaseName> phaseNames, double depth)
void
setHeaderFile(java.lang.String headerFile)
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
-
LOCSAT
public static final java.lang.String LOCSAT
- See Also:
- Constant Field Values
-
headerFile
protected java.lang.String headerFile
-
depths
protected double[] depths
-
distances
protected double[] distances
-
-
Method Detail
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
init
public void init() throws TauPException
- Overrides:
init
in classTauP_AbstractPhaseTool
- Throws:
TauPException
-
start
public void start() throws TauPException, java.io.IOException
- Specified by:
start
in classTauP_Tool
- Throws:
TauPException
java.io.IOException
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
validateArguments
public void validateArguments() throws TauModelException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauModelException
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtension
in classTauP_Tool
-
calcAll
public java.util.List<Arrival> calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> shootables) throws SlownessModelException, NoSuchLayerException
-
jsonTable
protected void jsonTable(java.io.PrintWriter out) throws TauPException, java.io.IOException
- Throws:
TauPException
java.io.IOException
-
recalcPhases
protected java.util.List<SeismicPhase> recalcPhases(java.util.List<PhaseName> phaseNames, double depth) throws TauModelException
- Throws:
TauModelException
-
csvTable
protected void csvTable(java.io.PrintWriter out) throws TauPException
- Throws:
TauPException
-
genericTable
protected void genericTable(java.io.PrintWriter out) throws TauPException
- Throws:
TauPException
-
locsatTable
protected void locsatTable(java.io.PrintWriter out) throws TauPException
- Throws:
TauPException
-
getHeaderFile
public java.lang.String getHeaderFile()
-
setHeaderFile
public void setHeaderFile(java.lang.String headerFile)
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
ToolRun.main should be used instead.- Throws:
java.io.IOException
-
-