public class TauP_Curve extends TauP_Time
| Modifier and Type | Field and Description |
|---|---|
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?
|
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| Modifier | Constructor and Description |
|---|---|
protected |
TauP_Curve() |
|
TauP_Curve(java.lang.String modelName) |
|
TauP_Curve(TauModel tMod) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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, sortArrivalsprotected boolean gmtScript
protected boolean svgOutput
protected boolean reduceTime
protected double reduceVel
protected java.lang.String redVelString
protected float mapWidth
protected TauP_Curve()
public TauP_Curve(TauModel tMod) throws TauModelException
TauModelExceptionpublic TauP_Curve(java.lang.String modelName)
throws TauModelException
TauModelExceptionpublic boolean isGmtScript()
public void setGmtScript(boolean gmtScript)
public boolean isReduceTime()
public void setReduceTime(boolean reduceTime)
public double getReduceVelDeg()
public void setReduceVelDeg(double reduceVel)
public double getReduceVelKm()
public void setReduceVelKm(double reduceVel)
public void setMapWidth(float mapWidth)
public float getMapWidth()
public void printScriptBeginning(java.io.PrintWriter out)
throws java.io.IOException
TauP_TimeprintScriptBeginning in class TauP_Timejava.io.IOExceptionpublic void printStdUsage()
TauP_TimeprintStdUsage in class TauP_Timepublic void printStdUsageTail()
printStdUsageTail in class TauP_Timepublic void printUsage()
printUsage in class TauP_Timepublic void start()
throws java.io.IOException,
TauModelException
start in class TauP_Timejava.io.IOExceptionTauModelExceptionpublic void destroy()
throws java.io.IOException
public void printResult(java.io.PrintWriter out)
throws java.io.IOException
printResult in class TauP_Timejava.io.IOExceptionprotected void checkBoundary(double boundaryDistRadian,
int distIndex,
SeismicPhase phase,
java.util.List<SeismicPhase> relPhase,
java.io.PrintWriter out)
throws java.io.IOException
java.io.IOExceptionprotected double[] calcTimeValue(double distRadian,
double time,
java.util.List<SeismicPhase> relPhase)
throws java.io.IOException
java.io.IOExceptionpublic void writeValue(double distRadian,
double time,
java.util.List<SeismicPhase> relPhase,
java.io.PrintWriter out)
throws java.io.IOException
java.io.IOExceptionpublic static final boolean isBetween(double a,
double b,
double value)
public java.lang.String[] parseCmdLineArgs(java.lang.String[] args)
throws java.io.IOException
parseCmdLineArgs in class TauP_Timejava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException,
java.io.StreamCorruptedException,
java.lang.ClassNotFoundException,
java.io.OptionalDataException
java.io.FileNotFoundExceptionjava.io.IOExceptionjava.io.StreamCorruptedExceptionjava.lang.ClassNotFoundExceptionjava.io.OptionalDataException