Package edu.sc.seis.TauP
Class TauModelLoader
java.lang.Object
edu.sc.seis.TauP.TauModelLoader
static class that loads a tau model, after searching for it. It can be
extended to change the search mechanism.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToCache(String modelName, TauModel tMod) static voidstatic TauModelcreateTauModel(VelocityModel vMod) static TauModelcreateTauModel(VelocityModel vMod, Properties toolProps) static TauModelinternalLoad(String modelName, String searchPath, boolean verbose) static TauModelstatic TauModelReads the velocity model, slowness model, and tau model from a file saved using Java's Serializable interface.static TauModelprotected static TauModelloadFromCache(String modelName) static VelocityModelloadVelocityModel(String modelName) static VelocityModelloadVelocityModel(String modelName, String fileType) Loads velocity mode, either by name.
-
Field Details
-
packageName
-
otherVelocityModels
-
-
Constructor Details
-
TauModelLoader
public TauModelLoader()
-
-
Method Details
-
load
- Throws:
TauModelException
-
load
Reads the velocity model, slowness model, and tau model from a file saved using Java's Serializable interface.- Throws:
TauModelException
-
load
public static TauModel load(String modelName, String searchPath, boolean verbose) throws TauModelException - Throws:
TauModelException
-
addToCache
-
internalLoad
public static TauModel internalLoad(String modelName, String searchPath, boolean verbose) throws TauModelException - Throws:
TauModelException
-
loadVelocityModel
public static VelocityModel loadVelocityModel(String modelName) throws IOException, VelocityModelException - Throws:
IOExceptionVelocityModelException
-
loadVelocityModel
public static VelocityModel loadVelocityModel(String modelName, String fileType) throws IOException, VelocityModelException Loads velocity mode, either by name. Looking inside jar for standard models, as file from current directory.- Parameters:
modelName- name of model or file name- Returns:
- Throws:
IOExceptionVelocityModelException
-
createTauModel
public static TauModel createTauModel(VelocityModel vMod) throws SlownessModelException, TauModelException, IOException -
createTauModel
public static TauModel createTauModel(VelocityModel vMod, Properties toolProps) throws SlownessModelException, TauModelException -
loadFromCache
-
clearCache
public static void clearCache()
-