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.


Variable Index

 o DEBUG
Turns on debugging output.
 o verbose
Turns on verbose output.

Constructor Index

 o TauP_Time()
 o TauP_Time(String)
creates a TauP_Time object with the tau model specified by modelName already loaded.
 o TauP_Time(TauModel)

Method Index

 o appendPhaseName(PhaseName)
 o appendPhaseName(String)
 o calcTime(double)
 o calculate(double)
 o clearArrivals()
 o clearPhaseNames()
 o depthCorrect(double)
corrects the TauModel for the given source depth.
 o destroy()
 o getArrival(int)
 o getArrivals()
 o getDisconDepths()
 o getNumArrivals()
 o getNumPhases()
 o getPhaseNames()
 o getPhaseNameString()
 o getSourceDepth()
 o getTauModel()
 o getTauModelName()
 o init()
preforms intialization of the tool.
 o loadTauModel(String)
 o main(String[])
Allows TauP_Time to run as an application.
 o parseDegreeList(String)
Parses a comma separated list of distances and returns them in an array.
 o parsePhaseList(String)
parses a comma separated list of phase names and adds them to the phaseNames vector.
 o printHelp()
 o printResult(DataOutputStream)
 o printResult(Writer)
 o printStdUsage()
Prints the command line arguments common to all TauP tools.
 o printStdUsageHead()
 o printStdUsageTail()
 o printUsage()
 o recalcPhases()
reclaulates the given phases using a possibly new or changed tau model.
 o setPhaseNames(PhaseName[])
 o setPhaseNames(String[])
 o setSourceDepth(double)
 o setTauModel(TauModel)
 o sortArrivals()
 o start()

Variables

 o DEBUG
 public boolean DEBUG
Turns on debugging output.

 o verbose
 public boolean verbose
Turns on verbose output.

Constructors

 o TauP_Time
 public TauP_Time()
 o TauP_Time
 public TauP_Time(TauModel tMod) throws TauModelException
 o TauP_Time
 public TauP_Time(String modelName) throws TauModelException
creates a TauP_Time object with the tau model specified by modelName already loaded.

Methods

 o getPhaseNames
 public String[] getPhaseNames()
 o getPhaseNameString
 public String getPhaseNameString()
 o setPhaseNames
 public void setPhaseNames(String phaseNames[])
 o setPhaseNames
 public void setPhaseNames(PhaseName phaseNames[])
 o appendPhaseName
 public synchronized void appendPhaseName(String phaseName)
 o appendPhaseName
 public synchronized void appendPhaseName(PhaseName phaseName)
 o getNumPhases
 public int getNumPhases()
 o clearPhaseNames
 public void clearPhaseNames()
 o getSourceDepth
 public double getSourceDepth()
 o setSourceDepth
 public void setSourceDepth(double depth)
 o getTauModelName
 public String getTauModelName()
 o getTauModel
 public TauModel getTauModel()
 o setTauModel
 public void setTauModel(TauModel tMod)
 o loadTauModel
 public void loadTauModel(String modelName) throws FileNotFoundException, InvalidClassException, IOException, StreamCorruptedException, OptionalDataException, TauModelException
 o getDisconDepths
 public double[] getDisconDepths()
 o clearArrivals
 public void clearArrivals()
 o getNumArrivals
 public int getNumArrivals()
 o getArrival
 public Arrival getArrival(int i)
 o getArrivals
 public Arrival[] getArrivals()
 o 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.

 o parseDegreeList
 public double[] parseDegreeList(String degList)
Parses a comma separated list of distances and returns them in an array.

 o sortArrivals
 public synchronized void sortArrivals()
 o calculate
 public void calculate(double degrees) throws TauModelException
 o calcTime
 public void calcTime(double degrees)
 o 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.

 o 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.

 o printResult
 public void printResult(DataOutputStream dos) throws IOException
 o printResult
 public void printResult(Writer out) throws IOException
 o 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.

 o printHelp
 public void printHelp()
 o start
 public void start() throws IOException, TauModelException, TauPException
 o destroy
 public void destroy() throws IOException
 o printStdUsageHead
 public void printStdUsageHead()
 o printStdUsage
 public void printStdUsage()
Prints the command line arguments common to all TauP tools.

 o printStdUsageTail
 public void printStdUsageTail()
 o printUsage
 public void printUsage()
 o 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