edu.sc.seis.TauP
Class TauP_Path
java.lang.Object
|
+--edu.sc.seis.TauP.TauP_Time
|
+--edu.sc.seis.TauP.TauP_Pierce
|
+--edu.sc.seis.TauP.TauP_Path
- public class TauP_Path
- extends TauP_Pierce
Calculate travel paths for different phases using a linear interpolated
ray parameter between known slowness samples.
Method Summary |
void |
calcPath(double degrees)
|
void |
calculate(double degrees)
|
void |
destroy()
|
boolean |
getGmtScript()
|
float |
getMapWidth()
Gets the gmt map width to be used with the output script and for
creating the circles for each discontinuity. |
double |
getMaxPathInc()
|
void |
init()
preforms intialization of the tool. |
static void |
main(java.lang.String[] args)
Allows TauP_Path to run as an application. |
java.lang.String[] |
parseCmdLineArgs(java.lang.String[] args)
|
void |
printResult(java.io.Writer out)
|
void |
printUsage()
prints the known command line flags. |
void |
setGmtScript(boolean gmtScript)
|
void |
setMapWidth()
Sets the gmt map width to be used with the output script and for
creating the circles for each discontinuity. |
void |
setMaxPathInc(double maxPathInc)
|
void |
setOutFileBase(java.lang.String outFileBase)
Sets the output file base, appending ".gmt" for the filename. |
void |
start()
|
Methods inherited from class edu.sc.seis.TauP.TauP_Time |
appendPhaseName, appendPhaseName, calcTime, clearArrivals, clearPhaseNames, getArrival, getArrivals, getDisconDepths, getNumArrivals, getNumPhases, getPhaseNames, getPhaseNameString, getSourceDepth, getTauModel, getTauModelName, loadTauModel, parseDegreeList, parsePhaseList, printHelp, printResult, printStdUsage, printStdUsageHead, printStdUsageTail, recalcPhases, setPhaseNames, setPhaseNames, setSourceDepth, setTauModel, sortArrivals |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TauP_Path
public TauP_Path(TauModel tMod)
throws TauModelException
TauP_Path
public TauP_Path(java.lang.String modelName)
throws TauModelException
TauP_Path
public TauP_Path(TauModel tMod,
java.lang.String outFileBase)
throws TauModelException
TauP_Path
public TauP_Path(java.lang.String modelName,
java.lang.String outFileBase)
throws TauModelException
setOutFileBase
public void setOutFileBase(java.lang.String outFileBase)
- Sets the output file base, appending ".gmt" for the filename.
setMapWidth
public void setMapWidth()
- Sets the gmt map width to be used with the output script and for
creating the circles for each discontinuity. Default is 6 inches.
getMapWidth
public float getMapWidth()
- Gets the gmt map width to be used with the output script and for
creating the circles for each discontinuity.
getGmtScript
public boolean getGmtScript()
setGmtScript
public void setGmtScript(boolean gmtScript)
getMaxPathInc
public double getMaxPathInc()
setMaxPathInc
public void setMaxPathInc(double maxPathInc)
calculate
public void calculate(double degrees)
throws TauModelException
- Overrides:
calculate
in class TauP_Pierce
calcPath
public void calcPath(double degrees)
printResult
public void printResult(java.io.Writer out)
throws java.io.IOException
- Overrides:
printResult
in class TauP_Pierce
init
public void init()
throws java.io.IOException
- Description copied from class:
TauP_Time
- 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.
- Overrides:
init
in class TauP_Time
printUsage
public void printUsage()
- Description copied from class:
TauP_Pierce
- prints the known command line flags.
- Overrides:
printUsage
in class TauP_Pierce
parseCmdLineArgs
public java.lang.String[] parseCmdLineArgs(java.lang.String[] args)
throws java.io.IOException
- Overrides:
parseCmdLineArgs
in class TauP_Pierce
start
public void start()
throws java.io.IOException,
TauModelException,
TauPException
- Overrides:
start
in class TauP_Time
destroy
public void destroy()
throws java.io.IOException
- Overrides:
destroy
in class TauP_Time
main
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException,
java.io.StreamCorruptedException,
java.lang.ClassNotFoundException,
java.io.OptionalDataException
- Allows TauP_Path to run as an application. Creates an instance of
TauP_Path and calls TauP_Path.init() and TauP_Path.start().