Package edu.sc.seis.TauP
Class TauP_WKBJ
- java.lang.Object
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_WKBJ extends TauP_Time
-
-
Field Summary
Fields Modifier and Type Field Description protected double
deltaT
deltaT of the seismogram, default is .05 which gives 20 sps.static int
RAD_IDX
static int
TRANS_IDX
static int
VERT_IDX
-
Fields inherited from class edu.sc.seis.TauP.TauP_Time
onlyFirst, onlyPrintRayP, onlyPrintTime, relativePhaseList, relativePhaseName, withAmplitude
-
Fields inherited from class edu.sc.seis.TauP.TauP_AbstractRayTool
distanceArgs
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
allowedOutputFormats()
static void
boxcar(float[] data, float val, float dur, float deltaT)
static void
boxcarDerivative(float[] data, float val, float dur, float deltaT)
java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record>
calcSpikes(java.util.List<DistanceRay> degreesList)
static float[][]
calcThetaTimeseriesRTZ(double degrees, java.util.List<Arrival> allArrivals, int startTime, double deltaT, int numSamples)
java.util.List<Arrival>
calculate(java.util.List<DistanceRay> distanceRays)
java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record>
calcWKBJ(java.util.List<DistanceRay> degreesList)
void
closeOutputStream()
static float[]
dumbconvolve(float[] a, float[] b)
static float[][]
effectiveSourceTerm(float momentMag, float deltaT, int numSamples)
double
getDeltaT()
Get the value of deltaT.java.lang.String
getOutFile()
java.io.DataOutputStream
getOutputStream()
static void
heavyside2ndDerivative(float[] data, float val, float deltaT)
static double
mw_to_N_m(double Mw)
Mw to Mo conversion from Lay and Wallace p.java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record>
packageMSeed3(float[] vertical, float[] radial, float[] transverse, java.lang.String staCode, int startSecOffset)
edu.sc.seis.seisFile.mseed3.MSeed3Record
packageMSeed3(float[] data, java.lang.String staCode, java.lang.String sourceCode, java.lang.String subsourceCode, int startSecOffset)
static void
secondDerivative(float[] data, float deltaT)
void
setDefaultOutputFormat()
void
setDeltaT(double v)
Set the value of deltaT.void
setOutFile(java.lang.String outfile)
void
setOutputStream(java.io.DataOutputStream writer)
static void
trapazoid(float[] data, float m, float rise, float dur, float deltaT)
-
Methods inherited from class edu.sc.seis.TauP.TauP_Time
calcAll, calcAndPrint, calcTime, calculate, calculateRelativeArrival, destroy, getDistanceUsage, getLimitUsage, getOutFileExtension, getOutputFormat, getStdUsage, getStdUsageHead, init, main, printHelp, printResult, printResultJSON, printResultText, recalcPhases, resultAsJSONObject, start, writeJSON, writeJSON
-
Methods inherited from class edu.sc.seis.TauP.TauP_AbstractRayTool
getDistanceArgs, parseDegreeList, parseDoubleList, resultAsJSON, 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, 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, printScriptBeginning, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, setWriter, toolNameFromClass
-
-
-
-
Field Detail
-
deltaT
protected double deltaT
deltaT of the seismogram, default is .05 which gives 20 sps.
-
RAD_IDX
public static final int RAD_IDX
- See Also:
- Constant Field Values
-
TRANS_IDX
public static final int TRANS_IDX
- See Also:
- Constant Field Values
-
VERT_IDX
public static final int VERT_IDX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TauP_WKBJ
public TauP_WKBJ()
-
TauP_WKBJ
public TauP_WKBJ(TauModel tMod) throws TauModelException
- Throws:
TauModelException
-
TauP_WKBJ
public TauP_WKBJ(java.lang.String modelName) throws TauModelException
- Throws:
TauModelException
-
-
Method Detail
-
allowedOutputFormats
public java.lang.String[] allowedOutputFormats()
- Overrides:
allowedOutputFormats
in classTauP_Time
-
setDefaultOutputFormat
public void setDefaultOutputFormat()
- Overrides:
setDefaultOutputFormat
in classTauP_Time
-
getDeltaT
public double getDeltaT()
Get the value of deltaT.- Returns:
- Value of deltaT.
-
setDeltaT
public void setDeltaT(double v)
Set the value of deltaT.- Parameters:
v
- Value to assign to deltaT.
-
calculate
public java.util.List<Arrival> calculate(java.util.List<DistanceRay> distanceRays) throws TauPException
- Overrides:
calculate
in classTauP_Time
- Throws:
TauPException
-
calcSpikes
public java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcSpikes(java.util.List<DistanceRay> degreesList) throws TauPException, java.io.IOException
- Throws:
TauPException
java.io.IOException
-
packageMSeed3
public java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record> packageMSeed3(float[] vertical, float[] radial, float[] transverse, java.lang.String staCode, int startSecOffset)
-
packageMSeed3
public edu.sc.seis.seisFile.mseed3.MSeed3Record packageMSeed3(float[] data, java.lang.String staCode, java.lang.String sourceCode, java.lang.String subsourceCode, int startSecOffset)
-
calcWKBJ
public java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcWKBJ(java.util.List<DistanceRay> degreesList) throws TauPException, java.io.IOException
- Throws:
TauPException
java.io.IOException
-
dumbconvolve
public static float[] dumbconvolve(float[] a, float[] b)
-
trapazoid
public static void trapazoid(float[] data, float m, float rise, float dur, float deltaT)
-
secondDerivative
public static void secondDerivative(float[] data, float deltaT)
-
boxcar
public static void boxcar(float[] data, float val, float dur, float deltaT)
-
boxcarDerivative
public static void boxcarDerivative(float[] data, float val, float dur, float deltaT)
-
heavyside2ndDerivative
public static void heavyside2ndDerivative(float[] data, float val, float deltaT)
-
effectiveSourceTerm
public static float[][] effectiveSourceTerm(float momentMag, float deltaT, int numSamples)
-
calcThetaTimeseriesRTZ
public static float[][] calcThetaTimeseriesRTZ(double degrees, java.util.List<Arrival> allArrivals, int startTime, double deltaT, int numSamples) throws TauPException
- Throws:
TauPException
-
mw_to_N_m
public static double mw_to_N_m(double Mw)
Mw to Mo conversion from Lay and Wallace p. 384, I assumed that Mo is in newton meters hence multiply by 10^7 to change to dyne cm (1 Newton = 10^5 dynes and 1 m = 10^2 cm)- Returns:
-
getOutputStream
public java.io.DataOutputStream getOutputStream() throws java.io.IOException
- Throws:
java.io.IOException
-
closeOutputStream
public void closeOutputStream()
-
setOutputStream
public void setOutputStream(java.io.DataOutputStream writer)
-
setOutFile
public void setOutFile(java.lang.String outfile)
-
getOutFile
public java.lang.String getOutFile()
-
-