Package edu.sc.seis.TauP
Class TauP_Create
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_Create
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Create extends TauP_Tool
TauP_Create - Re-implementation of the seismic travel time calculation method described in "The Computation of Seismic Travel Times" by Buland and Chapman, BSSA vol. 73, No. 5, October 1983, pp 1271-1302. This creates the SlownessModel and tau branches and saves them for later use.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
GUI
protected java.util.Properties
toolProps
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
abstractOutputTypeArgs, cmdLineArgs
-
-
Constructor Summary
Constructors Constructor Description TauP_Create()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TauModel
createTauModel(VelocityModel vMod)
void
destroy()
boolean
getDEBUG()
java.lang.String
getDirectory()
java.lang.String
getOutputFormat()
void
init()
VelocityModel
loadVMod()
static void
main(java.lang.String[] args)
Allows TauP_Create to run as an application.void
parseFileName(java.lang.String modelFilename)
void
setAllowInnerCoreS(boolean allowInnerCoreS)
void
setDEBUG(boolean DEBUG)
Turns on debugging output.void
setDirectory(java.lang.String directory)
void
setMaxDeltaP(float maxDeltaP)
void
setMaxDepthInterval(float maxDepthInterval)
void
setMaxInterpError(float maxInterpError)
void
setMaxRangeInterval(float maxRangeInterval)
void
setMinDeltaP(float minDeltaP)
void
setModelFilename(java.lang.String modelFilename)
void
setVelFileType(java.lang.String type)
void
setVelocityModel(VelocityModel vMod)
void
start()
void
validateArguments()
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
call, configDefaults, endGmtAndCleanUp, getModDepthUsage, getOutFileBase, getOutFileExtension, getStdUsageHead, getStdUsageTail, isDEBUG, isVerbose, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
-
-
-
Method Detail
-
setDirectory
public void setDirectory(java.lang.String directory)
-
getDirectory
public java.lang.String getDirectory()
-
setModelFilename
public void setModelFilename(java.lang.String modelFilename)
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
setVelFileType
public void setVelFileType(java.lang.String type)
-
setDEBUG
public void setDEBUG(boolean DEBUG)
Description copied from class:TauP_Tool
Turns on debugging output.
-
getDEBUG
public boolean getDEBUG()
-
setVelocityModel
public void setVelocityModel(VelocityModel vMod)
-
setMinDeltaP
public void setMinDeltaP(float minDeltaP)
-
setMaxDeltaP
public void setMaxDeltaP(float maxDeltaP)
-
setMaxDepthInterval
public void setMaxDepthInterval(float maxDepthInterval)
-
setMaxRangeInterval
public void setMaxRangeInterval(float maxRangeInterval)
-
setMaxInterpError
public void setMaxInterpError(float maxInterpError)
-
setAllowInnerCoreS
public void setAllowInnerCoreS(boolean allowInnerCoreS)
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Allows TauP_Create to run as an application. Creates an instance of TauP_Create and calls tauPCreate.init() and tauPCreate.start(). ToolRun.main should be used instead.- Throws:
java.io.IOException
-
parseFileName
public void parseFileName(java.lang.String modelFilename)
-
loadVMod
public VelocityModel loadVMod() throws java.io.IOException, VelocityModelException
- Throws:
java.io.IOException
VelocityModelException
-
validateArguments
public void validateArguments() throws TauModelException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauModelException
-
createTauModel
public TauModel createTauModel(VelocityModel vMod) throws VelocityModelException, SlownessModelException, TauModelException
-
start
public void start() throws SlownessModelException, TauModelException, VelocityModelException, java.io.IOException
- Specified by:
start
in classTauP_Tool
- Throws:
SlownessModelException
TauModelException
VelocityModelException
java.io.IOException
-
init
public void init() throws TauPException
- Specified by:
init
in classTauP_Tool
- Throws:
TauPException
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
-