edu.sc.seis.TauP
Class TauP_Curve

java.lang.Object
  extended byedu.sc.seis.TauP.TauP_Time
      extended byedu.sc.seis.TauP.TauP_Curve

public class TauP_Curve
extends TauP_Time

Calculates travel time curves at known slowness samples.

Version:
1.1.3 Wed Jul 18 15:00:35 GMT 2001
Author:
H. Philip Crotwell

Field Summary
protected  boolean gmtScript
          should the output file be a compete script?
protected  boolean reduceTime
          should the output times use a reducing velocity?
protected  double reduceVel
          the reducing velocity to use if reduceTime == true, in units of radians/second .
 
Fields inherited from class edu.sc.seis.TauP.TauP_Time
arrivals, azimuth, backAzimuth, DEBUG, degrees, depth, dos, eventLat, eventLon, GUI, modelName, onlyPrintRayP, onlyPrintTime, outFile, outForms, phaseNames, phases, stationLat, stationLon, tMod, tModDepth, toolProps, verbose
 
Constructor Summary
protected TauP_Curve()
           
  TauP_Curve(java.lang.String modelName)
           
  TauP_Curve(TauModel tMod)
           
 
Method Summary
 void calculate(double degrees)
           
 void destroy()
           
 double getReduceVelDeg()
           
 double getReduceVelKm()
           
 void init()
          preforms intialization of the tool.
 boolean isGmtScript()
           
 boolean isReduceTime()
           
static void main(java.lang.String[] args)
          Allows TauP_Curve to run as an application.
 java.lang.String[] parseCmdLineArgs(java.lang.String[] args)
           
 void printResult(java.io.Writer out)
           
 void printStdUsage()
          Prints the command line arguments common to all TauP tools.
 void printStdUsageTail()
           
 void printUsage()
           
 void setGmtScript(boolean gmtScript)
           
 void setReduceTime(boolean reduceTime)
           
 void setReduceVelDeg(double reduceVel)
          set the reducing velocity, in degrees/second.
 void setReduceVelKm(double reduceVel)
          set the reducing velocity, in kilometers/second.
 void start()
           
 
Methods inherited from class edu.sc.seis.TauP.TauP_Time
appendPhaseName, appendPhaseName, calcTime, clearArrivals, clearPhaseNames, depthCorrect, getArrival, getArrivals, getDisconDepths, getNumArrivals, getNumPhases, getPhaseNames, getPhaseNames, getPhaseNameString, getSourceDepth, getTauModel, getTauModelName, loadTauModel, parseDegreeList, parsePhaseList, printHelp, printResult, printStdUsageHead, readPhaseFile, readTauModel, recalcPhases, setPhaseNames, setPhaseNames, setSourceDepth, setTauModel, sortArrivals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gmtScript

protected boolean gmtScript
should the output file be a compete script?


reduceTime

protected boolean reduceTime
should the output times use a reducing velocity?


reduceVel

protected double reduceVel
the reducing velocity to use if reduceTime == true, in units of radians/second .

Constructor Detail

TauP_Curve

protected TauP_Curve()

TauP_Curve

public TauP_Curve(TauModel tMod)
           throws TauModelException

TauP_Curve

public TauP_Curve(java.lang.String modelName)
           throws TauModelException
Method Detail

isGmtScript

public boolean isGmtScript()

setGmtScript

public void setGmtScript(boolean gmtScript)

isReduceTime

public boolean isReduceTime()

setReduceTime

public void setReduceTime(boolean reduceTime)

getReduceVelDeg

public double getReduceVelDeg()

setReduceVelDeg

public void setReduceVelDeg(double reduceVel)
set the reducing velocity, in degrees/second. The internal representation is radians/second.


getReduceVelKm

public double getReduceVelKm()

setReduceVelKm

public void setReduceVelKm(double reduceVel)
set the reducing velocity, in kilometers/second. The internal representation is radians/second.


calculate

public void calculate(double degrees)
Overrides:
calculate in class TauP_Time

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
Throws:
java.io.IOException

printStdUsage

public void printStdUsage()
Description copied from class: TauP_Time
Prints the command line arguments common to all TauP tools.

Overrides:
printStdUsage in class TauP_Time

printStdUsageTail

public void printStdUsageTail()
Overrides:
printStdUsageTail in class TauP_Time

printUsage

public void printUsage()
Overrides:
printUsage in class TauP_Time

start

public void start()
           throws java.io.IOException,
                  TauModelException
Overrides:
start in class TauP_Time
Throws:
java.io.IOException
TauModelException

destroy

public void destroy()
             throws java.io.IOException
Overrides:
destroy in class TauP_Time
Throws:
java.io.IOException

printResult

public void printResult(java.io.Writer out)
                 throws java.io.IOException
Overrides:
printResult in class TauP_Time
Throws:
java.io.IOException

parseCmdLineArgs

public java.lang.String[] parseCmdLineArgs(java.lang.String[] args)
                                    throws java.io.IOException
Overrides:
parseCmdLineArgs in class TauP_Time
Throws:
java.io.IOException

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_Curve to run as an application. Creates an instance of TauP_Curve. .

Throws:
java.io.FileNotFoundException
java.io.IOException
java.io.StreamCorruptedException
java.lang.ClassNotFoundException
java.io.OptionalDataException


Copyright © 1999-2005 Seismology at the University of South Carolina. All Rights Reserved.