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 java.lang.String |
mapWidthUnit |
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, JSON, modelName, onlyPrintRayP, onlyPrintTime, outFileBase, outForms, outputFormat, phaseNames, receiverDepth, relativeArrival, relativePhaseName, stationLat, stationLon, takeoffAngle, TEXT, 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.
|
java.lang.String |
getMapWidthUnit() |
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 |
setMapWidthUnit(java.lang.String mapWidthUnit) |
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, calcTakeoff, calcTime, clearArrivals, clearPhaseNames, clearPhases, dashEquals, depthCorrect, depthCorrect, getArrival, getArrivals, getDisconDepths, getNumArrivals, getNumPhases, getOutFile, getOutFileBase, getOutFileExtension, getOutputFormat, getPhaseNames, getPhaseNames, getPhaseNameString, getReceiverDepth, getSeismicPhases, getSourceDepth, getTauModel, getTauModelName, getWriter, init, linearInterp, loadTauModel, parseDegreeList, parsePhaseList, printHelp, printNoComprendoArgs, printResultJSON, printResultText, printStdUsageHead, printStdUsageHead, readPhaseFile, readTauModel, recalcPhases, setOutFileBase, setOutputFormat, setPhaseNames, setPhaseNames, setReceiverDepth, setSourceDepth, setTauModel, setWriter, sortArrivals
protected boolean gmtScript
protected boolean svgOutput
protected boolean reduceTime
protected double reduceVel
protected java.lang.String redVelString
protected float mapWidth
protected java.lang.String mapWidthUnit
protected TauP_Curve()
public TauP_Curve(TauModel tMod) throws TauModelException
TauModelException
public TauP_Curve(java.lang.String modelName) throws TauModelException
TauModelException
public 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 java.lang.String getMapWidthUnit()
public void setMapWidthUnit(java.lang.String mapWidthUnit)
public void calculate(double degrees) throws TauModelException
calculate
in class TauP_Time
TauModelException
public void printScriptBeginning(java.io.PrintWriter out) throws java.io.IOException
TauP_Time
printScriptBeginning
in class TauP_Time
java.io.IOException
public void printStdUsage()
TauP_Time
printStdUsage
in class TauP_Time
public void printStdUsageTail()
printStdUsageTail
in class TauP_Time
public void printUsage()
printUsage
in class TauP_Time
public void start() throws java.io.IOException, TauModelException
start
in class TauP_Time
java.io.IOException
TauModelException
public void destroy() throws java.io.IOException
public void printResult(java.io.PrintWriter out) throws java.io.IOException
printResult
in class TauP_Time
java.io.IOException
protected void checkBoundary(double boundaryDistRadian, int distIndex, SeismicPhase phase, java.util.List<SeismicPhase> relPhase, java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
protected double[] calcTimeValue(double distRadian, double time, java.util.List<SeismicPhase> relPhase) throws java.io.IOException
java.io.IOException
public void writeValue(double distRadian, double time, java.util.List<SeismicPhase> relPhase, java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
public 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_Time
java.io.IOException
public 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.FileNotFoundException
java.io.IOException
java.io.StreamCorruptedException
java.lang.ClassNotFoundException
java.io.OptionalDataException