All Packages Class Hierarchy This Package Previous Next Index
Class edu.sc.seis.TauP.TauP_Time
edu.sc.seis.TauP.TauP_Time
- public class TauP_Time
Calculate travel times for different branches using linear interpolation
between known slowness samples.
-
DEBUG
- Turns on debugging output.
-
verbose
- Turns on verbose output.
-
TauP_Time()
-
-
TauP_Time(String)
- creates a TauP_Time object with the tau model specified by modelName
already loaded.
-
TauP_Time(TauModel)
-
-
appendPhaseName(PhaseName)
-
-
appendPhaseName(String)
-
-
calcTime(double)
-
-
calculate(double)
-
-
clearArrivals()
-
-
clearPhaseNames()
-
-
depthCorrect(double)
- corrects the TauModel for the given source depth.
-
destroy()
-
-
getArrival(int)
-
-
getArrivals()
-
-
getDisconDepths()
-
-
getNumArrivals()
-
-
getNumPhases()
-
-
getPhaseNames()
-
-
getPhaseNameString()
-
-
getSourceDepth()
-
-
getTauModel()
-
-
getTauModelName()
-
-
init()
- preforms intialization of the tool.
-
loadTauModel(String)
-
-
main(String[])
- Allows TauP_Time to run as an application.
-
parseDegreeList(String)
- Parses a comma separated list of distances and returns them in
an array.
-
parsePhaseList(String)
- parses a comma separated list of phase names and adds them to the
phaseNames vector.
-
printHelp()
-
-
printResult(DataOutputStream)
-
-
printResult(Writer)
-
-
printStdUsage()
- Prints the command line arguments common to all TauP tools.
-
printStdUsageHead()
-
-
printStdUsageTail()
-
-
printUsage()
-
-
recalcPhases()
- reclaulates the given phases using a possibly new or changed
tau model.
-
setPhaseNames(PhaseName[])
-
-
setPhaseNames(String[])
-
-
setSourceDepth(double)
-
-
setTauModel(TauModel)
-
-
sortArrivals()
-
-
start()
-
DEBUG
public boolean DEBUG
- Turns on debugging output.
verbose
public boolean verbose
- Turns on verbose output.
TauP_Time
public TauP_Time()
TauP_Time
public TauP_Time(TauModel tMod) throws TauModelException
TauP_Time
public TauP_Time(String modelName) throws TauModelException
- creates a TauP_Time object with the tau model specified by modelName
already loaded.
getPhaseNames
public String[] getPhaseNames()
getPhaseNameString
public String getPhaseNameString()
setPhaseNames
public void setPhaseNames(String phaseNames[])
setPhaseNames
public void setPhaseNames(PhaseName phaseNames[])
appendPhaseName
public synchronized void appendPhaseName(String phaseName)
appendPhaseName
public synchronized void appendPhaseName(PhaseName phaseName)
getNumPhases
public int getNumPhases()
clearPhaseNames
public void clearPhaseNames()
getSourceDepth
public double getSourceDepth()
setSourceDepth
public void setSourceDepth(double depth)
getTauModelName
public String getTauModelName()
getTauModel
public TauModel getTauModel()
setTauModel
public void setTauModel(TauModel tMod)
loadTauModel
public void loadTauModel(String modelName) throws FileNotFoundException, InvalidClassException, IOException, StreamCorruptedException, OptionalDataException, TauModelException
getDisconDepths
public double[] getDisconDepths()
clearArrivals
public void clearArrivals()
getNumArrivals
public int getNumArrivals()
getArrival
public Arrival getArrival(int i)
getArrivals
public Arrival[] getArrivals()
parsePhaseList
public void parsePhaseList(String phaseList)
- parses a comma separated list of phase names and adds them to the
phaseNames vector. Each phase can have an optional argument after
a dash. This would be used for specifying which sac header
to put the time in, or for other unforeseen uses. This may be called
multiple times to append more phases.
For example: P-0,PcP-1,ScP-4,Sn,SS,S^410S would, assuming no
previous phases have been added, put P in T0, PcP in T1, ScP in T5,
Sn in T2, SS in T3, and S^410S in T5.
parseDegreeList
public double[] parseDegreeList(String degList)
- Parses a comma separated list of distances and returns them in
an array.
sortArrivals
public synchronized void sortArrivals()
calculate
public void calculate(double degrees) throws TauModelException
calcTime
public void calcTime(double degrees)
depthCorrect
public void depthCorrect(double depth) throws TauModelException
- corrects the TauModel for the given source depth. It only
performs the correction of the model is not already
corrected to that depth.
recalcPhases
public synchronized void recalcPhases()
- reclaulates the given phases using a possibly new or changed
tau model. This should not need to be called by outside
classes as it is called by depthCorrect, and calculate.
printResult
public void printResult(DataOutputStream dos) throws IOException
printResult
public void printResult(Writer out) throws IOException
init
public void init() throws IOException
- preforms intialization of the tool. Properties are queried for
the the default model to load, source depth to use, phases to use,
etc. Note that because of the IO inherent in these operations, this
method is not appropriate for Applets. Applets should load
TauModels themselves and use the setTauModel(TauModel) method.
printHelp
public void printHelp()
start
public void start() throws IOException, TauModelException, TauPException
destroy
public void destroy() throws IOException
printStdUsageHead
public void printStdUsageHead()
printStdUsage
public void printStdUsage()
- Prints the command line arguments common to all TauP tools.
printStdUsageTail
public void printStdUsageTail()
printUsage
public void printUsage()
main
public static void main(String args[]) throws FileNotFoundException, IOException, StreamCorruptedException, ClassNotFoundException, OptionalDataException
- Allows TauP_Time to run as an application. Creates an instance
of TauP_Time.
.
All Packages Class Hierarchy This Package Previous Next Index