Package edu.sc.seis.TauP.cmdline
Class TauP_Table
- java.lang.Object
-
- edu.sc.seis.TauP.cmdline.TauP_Tool
-
- edu.sc.seis.TauP.cmdline.TauP_Table
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Table extends TauP_Tool
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 static java.lang.String
DEFAULT_PHASES
protected double[]
depths
protected double[]
distances
protected java.lang.String
headerFile
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, 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, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList)
void
destroy()
protected void
genericTable(java.io.PrintWriter out, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList)
java.lang.String
getHeaderFile()
java.lang.String
getOutFileExtension()
java.lang.String
getOutputFormat()
void
init()
protected void
jsonTable(java.io.PrintWriter out, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList)
protected void
locsatTable(java.io.PrintWriter out, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList)
static void
main(java.lang.String[] args)
ToolRun.main should be used instead.protected java.util.List<SeismicPhase>
recalcPhases(TauModel tMod, java.util.List<PhaseName> phaseNames, double depth, double receiverDepth, Scatterer scatterer)
void
setHeaderFile(java.lang.String headerFile)
void
start()
void
validateArguments()
-
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
-
DEFAULT_PHASES
public static final java.lang.String DEFAULT_PHASES
- 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
- Specified by:
init
in classTauP_Tool
- 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 TauPException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauPException
-
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, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList) throws TauPException, java.io.IOException
- Throws:
TauPException
java.io.IOException
-
recalcPhases
protected java.util.List<SeismicPhase> recalcPhases(TauModel tMod, java.util.List<PhaseName> phaseNames, double depth, double receiverDepth, Scatterer scatterer) throws TauModelException
- Throws:
TauModelException
-
csvTable
protected void csvTable(java.io.PrintWriter out, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList) throws TauPException
- Throws:
TauPException
-
genericTable
protected void genericTable(java.io.PrintWriter out, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList) throws TauPException
- Throws:
TauPException
-
locsatTable
protected void locsatTable(java.io.PrintWriter out, TauModel tMod, java.util.List<PhaseName> phaseNames, double[] depths, double receiverDepth, Scatterer scatterer, java.util.List<RayCalculateable> rayCalcList) 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
-
-