Package edu.sc.seis.TauP.cmdline
Class TauP_Spikes
- java.lang.Object
-
- edu.sc.seis.TauP.cmdline.TauP_Tool
-
- edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
-
- edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
-
- edu.sc.seis.TauP.cmdline.TauP_Spikes
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Spikes extends TauP_AbstractRayTool
-
-
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.cmdline.TauP_AbstractRayTool
distanceArgs
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
phaseNames
-
Fields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps
-
-
Constructor Summary
Constructors Constructor Description TauP_Spikes()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<Arrival>
calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> shootables)
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<edu.sc.seis.seisFile.mseed3.MSeed3Record>
calcWKBJ(java.util.List<DistanceRay> degreesList)
WARNING: Experimental.edu.sc.seis.seisFile.mseed3.MSeed3EH
createEH(double degrees, java.time.ZonedDateTime startDateTime, java.util.List<Arrival> allArrivals)
void
destroy()
static float[]
dumbconvolve(float[] a, float[] b)
static float[][]
effectiveSourceTerm(float momentMag, float deltaT, int numSamples)
double
getDeltaT()
Get the value of deltaT.java.util.List<DistanceRay>
getDistances()
java.time.ZonedDateTime
getOriginTime()
java.lang.String
getOutFileExtension()
java.lang.String
getOutputFormat()
java.io.DataOutputStream
getOutputStream()
static void
heavyside2ndDerivative(float[] data, float val, float deltaT)
void
init()
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)
void
printResult(java.io.PrintWriter out, java.util.List<Arrival> arrivalList)
static void
secondDerivative(float[] data, float deltaT)
void
setDeltaT(double v)
Set the value of deltaT.void
start()
static void
trapazoid(float[] data, float m, float rise, float dur, float deltaT)
void
validateArguments()
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractRayTool
getDistanceArgs, getReceiverDepths, getSourceDepths, writeJSON, writeJSON
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
appendPhaseName, appendPhaseName, baseResultAsJSONObject, calcSeismicPhases, calcSeismicPhases, clearPhaseNames, clearPhases, getNumPhases, getRadiusOfEarth, getScatterer, getScattererDepth, getSeismicPhases, getTauModelDepthCorrected, getTauModelName, parsePhaseList, parsePhaseNameList, setModelName, setPhaseNameList, setPhaseNames, setReceiverDepth, setScatterer, setSingleReceiverDepth, setSingleSourceDepth, setTauModel
-
Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, 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
-
-
Method Detail
-
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.
-
validateArguments
public void validateArguments() throws TauPException
- Overrides:
validateArguments
in classTauP_AbstractRayTool
- Throws:
TauPException
-
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
-
calcSpikes
public java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcSpikes(java.util.List<DistanceRay> degreesList) throws TauPException
- Throws:
TauPException
-
createEH
public edu.sc.seis.seisFile.mseed3.MSeed3EH createEH(double degrees, java.time.ZonedDateTime startDateTime, java.util.List<Arrival> allArrivals) throws TauPException
- Throws:
TauPException
-
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
WARNING: Experimental. Probably doesn't work due to wkbj formalism is flat earth and so doesn't translate to spherical. Possible to recalculate via EFT, but not sure worth it.- Throws:
TauPException
-
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
-
getOutputStream
public java.io.DataOutputStream getOutputStream() throws java.io.IOException
- Throws:
java.io.IOException
-
calcAll
public java.util.List<Arrival> calcAll(java.util.List<SeismicPhase> phaseList, java.util.List<RayCalculateable> shootables) throws TauPException
- Specified by:
calcAll
in classTauP_AbstractRayTool
- Throws:
TauPException
-
printResult
public void printResult(java.io.PrintWriter out, java.util.List<Arrival> arrivalList) throws java.io.IOException, TauPException
- Specified by:
printResult
in classTauP_AbstractRayTool
- Throws:
java.io.IOException
TauPException
-
destroy
public void destroy() throws TauPException
- Specified by:
destroy
in classTauP_Tool
- Throws:
TauPException
-
getOutputFormat
public java.lang.String getOutputFormat()
- Specified by:
getOutputFormat
in classTauP_Tool
-
getOutFileExtension
public java.lang.String getOutFileExtension()
- Overrides:
getOutFileExtension
in classTauP_Tool
-
getDistances
public java.util.List<DistanceRay> getDistances() throws TauPException
- Throws:
TauPException
-
getOriginTime
public java.time.ZonedDateTime getOriginTime()
-
-