edu.sc.seis.TauP
Class TauP_Curve

java.lang.Object
  extended by edu.sc.seis.TauP.TauP_Time
      extended by edu.sc.seis.TauP.TauP_Curve

public class TauP_Curve
extends TauP_Time

Calculates travel time curves at known slowness samples.


Field Summary
protected  boolean gmtScript
          should the output file be a compete script?
protected  float mapWidth
           
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 .
protected  java.lang.String redVelString
           
protected  boolean svgOutput
          should the output file an SVG script?
 
Fields inherited from class edu.sc.seis.TauP.TauP_Time
arrivals, azimuth, backAzimuth, DEBUG, degrees, depth, eventLat, eventLon, expert, GUI, modelName, onlyPrintRayP, onlyPrintTime, outFileBase, outForms, phaseNames, phases, relativeArrival, relativePhaseName, stationLat, stationLon, tMod, tModDepth, toolProps, verbose, writer
 
Constructor Summary
protected TauP_Curve()
           
  TauP_Curve(java.lang.String modelName)
           
  TauP_Curve(TauModel tMod)
           
 
Method Summary
protected  double[] calcTimeValue(double distRadian, double time, java.util.List<SeismicPhase> relPhase)
           
 void calculate(double degrees)
           
protected  void checkBoundary(double boundaryDistRadian, int distIndex, SeismicPhase phase, java.util.List<SeismicPhase> relPhase, java.io.PrintWriter out)
           
 void destroy()
           
 float getMapWidth()
          Gets the gmt map width to be used with the output script and for creating the circles for each discontinuity.
 double getReduceVelDeg()
           
 double getReduceVelKm()
           
static boolean isBetween(double a, double b, double value)
           
 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.PrintWriter out)
           
 void printScriptBeginning(java.io.PrintWriter out)
          a noop that allows overriding classes to print things before results are calculated.
 void printStdUsage()
          Prints the command line arguments common to all TauP tools.
 void printStdUsageTail()
           
 void printUsage()
           
 void setGmtScript(boolean gmtScript)
           
 void setMapWidth(float mapWidth)
          Sets the gmt map width to be used with the output script and for creating the circles for each discontinuity.
 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()
           
 void writeValue(double distRadian, double time, java.util.List<SeismicPhase> relPhase, java.io.PrintWriter out)
           
 
Methods inherited from class edu.sc.seis.TauP.TauP_Time
appendPhaseName, appendPhaseName, calcTime, clearArrivals, clearPhaseNames, dashEquals, depthCorrect, getArrival, getArrivals, getDisconDepths, getNumArrivals, getNumPhases, getOutFile, getOutFileBase, getOutFileExtension, getPhaseNames, getPhaseNames, getPhaseNameString, getSeismicPhases, getSourceDepth, getTauModel, getTauModelName, getWriter, init, linearInterp, loadTauModel, parseDegreeList, parsePhaseList, printHelp, printNoComprendoArgs, printStdUsageHead, printStdUsageHead, readPhaseFile, readTauModel, recalcPhases, setOutFileBase, 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?


svgOutput

protected boolean svgOutput
should the output file an SVG 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 .


redVelString

protected java.lang.String redVelString

mapWidth

protected float mapWidth
Constructor Detail

TauP_Curve

protected TauP_Curve()

TauP_Curve

public TauP_Curve(TauModel tMod)
           throws TauModelException
Throws:
TauModelException

TauP_Curve

public TauP_Curve(java.lang.String modelName)
           throws TauModelException
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()
Returns:
reducing velocity in degrees/second. The internal usage is radians/second.

setReduceVelDeg

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


getReduceVelKm

public double getReduceVelKm()
Returns:
reducing velocity in kilometers/second. The internal usage is radians/second.

setReduceVelKm

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


setMapWidth

public void setMapWidth(float mapWidth)
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.


calculate

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

printScriptBeginning

public void printScriptBeginning(java.io.PrintWriter out)
                          throws java.io.IOException
Description copied from class: TauP_Time
a noop that allows overriding classes to print things before results are calculated. For example to set up GMT commands before drawing paths.

Overrides:
printScriptBeginning 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.PrintWriter out)
                 throws java.io.IOException
Overrides:
printResult in class TauP_Time
Throws:
java.io.IOException

checkBoundary

protected void checkBoundary(double boundaryDistRadian,
                             int distIndex,
                             SeismicPhase phase,
                             java.util.List<SeismicPhase> relPhase,
                             java.io.PrintWriter out)
                      throws java.io.IOException
Throws:
java.io.IOException

calcTimeValue

protected double[] calcTimeValue(double distRadian,
                                 double time,
                                 java.util.List<SeismicPhase> relPhase)
                          throws java.io.IOException
Throws:
java.io.IOException

writeValue

public void writeValue(double distRadian,
                       double time,
                       java.util.List<SeismicPhase> relPhase,
                       java.io.PrintWriter out)
                throws java.io.IOException
Throws:
java.io.IOException

isBetween

public static final boolean isBetween(double a,
                                      double b,
                                      double value)

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