Package edu.sc.seis.TauP
Class TauP_Wavefront
- java.lang.Object
-
- edu.sc.seis.TauP.TauP_Tool
-
- edu.sc.seis.TauP.TauP_AbstractPhaseTool
-
- edu.sc.seis.TauP.TauP_Wavefront
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Wavefront extends TauP_AbstractPhaseTool
Plots of wavefronts, distance along the ray at points in time.
-
-
Field Summary
-
Fields inherited from class edu.sc.seis.TauP.TauP_AbstractPhaseTool
DEFAULT_PHASES, phaseNames
-
Fields inherited from class edu.sc.seis.TauP.TauP_Tool
cmdLineArgs, outFileBase, outputFormat, outputType, toolProps, writer
-
-
Constructor Summary
Constructors Constructor Description TauP_Wavefront()
TauP_Wavefront(TauModel tMod)
TauP_Wavefront(TauModel tMod, java.lang.String outFileBase)
TauP_Wavefront(java.lang.String modelName)
TauP_Wavefront(java.lang.String modelName, java.lang.String outFileBase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
allowedOutputFormats()
java.util.Map<java.lang.Double,java.util.List<WavefrontPathSegment>>
calcIsochron()
java.util.Map<java.lang.Double,java.util.List<WavefrontPathSegment>>
calcIsochronSegmentsForPhase(SeismicPhase phase, double timeStep)
java.util.Map<java.lang.Double,XYPlottingData>
calcIsochronsForPhase(SeismicPhase phase, double timeStep)
void
destroy()
GraphicOutputTypeArgs
getGraphicOutputTypeArgs()
int
getNumRays()
java.lang.String
getOutFileExtension()
java.lang.String
getOutputFormat()
float
getTimeStep()
void
init()
boolean
isNegDistance()
boolean
isSeparateFilesByTime()
static void
main(java.lang.String[] args)
Allows TauP_Isochron to run as an application.void
printIsochron(java.io.PrintWriter out, java.util.Map<java.lang.Double,java.util.List<WavefrontPathSegment>> timeSegmentMap, boolean negDistance, java.lang.String psFile)
void
printScriptBeginning(java.io.PrintWriter out)
a noop that allows overriding classes to print things before results are calculated.void
setDefaultOutputFormat()
void
setNegDistance(boolean negDistance)
void
setNumRays(int numRays)
void
setSeparateFilesByTime(boolean separateFilesByTime)
void
setTimeStep(float timeStep)
void
start()
void
validateArguments()
-
Methods inherited from class edu.sc.seis.TauP.TauP_AbstractPhaseTool
appendPhaseName, appendPhaseName, baseResultAsJSONObject, clearPhaseNames, clearPhases, extractPhaseNames, getNumPhases, getPhaseNames, getPhaseNameString, getPhaseUsage, getRadiusOfEarth, getReceiverDepth, getScatterer, getScattererDepth, getSeismicPhases, getSourceDepth, getTauModelDepthCorrected, getTauModelName, linearInterp, parsePhaseList, readPhaseFile, recalcPhases, setModelName, setPhaseNames, setPhaseNames, setReceiverDepth, setScatterer, setSourceDepth, setTauModel, splitPhaseNameList
-
Methods inherited from class edu.sc.seis.TauP.TauP_Tool
call, configDefaults, dashEquals, endGmtAndCleanUp, getModDepthUsage, getOutFileBase, getStdUsageHead, getStdUsageTail, isDEBUG, isVerbose, parseOutputFormatCmdLineArgs, printNoComprendoArgs, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, setWriter, toolNameFromClass
-
-
-
-
Constructor Detail
-
TauP_Wavefront
public TauP_Wavefront()
-
TauP_Wavefront
public TauP_Wavefront(java.lang.String modelName, java.lang.String outFileBase) throws TauModelException
- Throws:
TauModelException
-
TauP_Wavefront
public TauP_Wavefront(java.lang.String modelName) throws TauModelException
- Throws:
TauModelException
-
TauP_Wavefront
public TauP_Wavefront(TauModel tMod, java.lang.String outFileBase) throws TauModelException
- Throws:
TauModelException
-
TauP_Wavefront
public TauP_Wavefront(TauModel tMod) throws TauModelException
- Throws:
TauModelException
-
-
Method Detail
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtension
in classTauP_Tool
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
allowedOutputFormats
public java.lang.String[] allowedOutputFormats()
- Specified by:
allowedOutputFormats
in classTauP_Tool
-
setDefaultOutputFormat
public void setDefaultOutputFormat()
- Specified by:
setDefaultOutputFormat
in classTauP_Tool
-
validateArguments
public void validateArguments() throws TauModelException
- Specified by:
validateArguments
in classTauP_Tool
- Throws:
TauModelException
-
printScriptBeginning
public void printScriptBeginning(java.io.PrintWriter out) throws java.io.IOException
Description copied from class:TauP_Tool
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 classTauP_Tool
- Throws:
java.io.IOException
-
printIsochron
public void printIsochron(java.io.PrintWriter out, java.util.Map<java.lang.Double,java.util.List<WavefrontPathSegment>> timeSegmentMap, boolean negDistance, java.lang.String psFile) throws TauPException, java.io.IOException
- Throws:
TauPException
java.io.IOException
-
calcIsochron
public java.util.Map<java.lang.Double,java.util.List<WavefrontPathSegment>> calcIsochron() throws TauModelException
- Throws:
TauModelException
-
calcIsochronSegmentsForPhase
public java.util.Map<java.lang.Double,java.util.List<WavefrontPathSegment>> calcIsochronSegmentsForPhase(SeismicPhase phase, double timeStep)
-
calcIsochronsForPhase
public java.util.Map<java.lang.Double,XYPlottingData> calcIsochronsForPhase(SeismicPhase phase, double timeStep)
-
setNumRays
public void setNumRays(int numRays)
-
getNumRays
public int getNumRays()
-
getTimeStep
public float getTimeStep()
-
getGraphicOutputTypeArgs
public GraphicOutputTypeArgs getGraphicOutputTypeArgs()
-
setTimeStep
public void setTimeStep(float timeStep)
-
isSeparateFilesByTime
public boolean isSeparateFilesByTime()
-
setSeparateFilesByTime
public void setSeparateFilesByTime(boolean separateFilesByTime)
-
isNegDistance
public boolean isNegDistance()
-
setNegDistance
public void setNegDistance(boolean negDistance)
-
init
public void init() throws TauPException
- Overrides:
init
in classTauP_AbstractPhaseTool
- Throws:
TauPException
-
start
public void start() throws java.io.IOException, TauPException
- Specified by:
start
in classTauP_Tool
- Throws:
java.io.IOException
TauPException
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Allows TauP_Isochron to run as an application. Creates an instance of TauP_Wavefront. ToolRun.main should be used instead.- Throws:
java.io.IOException
-
-