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_Spikes
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class TauP_Spikes extends TauP_AbstractPhaseTool
-
-
Field Summary
Fields Modifier and Type Field Description static int
RAD_IDX
protected double
sps
deltaT of the seismogram, default is .05 which gives 20 sps.static int
TRANS_IDX
static int
VERT_IDX
-
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<RayCalculateable> degreesList)
java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record>
calcSpikes(java.util.List<RayCalculateable> rayList, java.util.List<SeismicPhase> phaseList, double sourceDepth, double receiverDepth)
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(DistanceRay dr, java.time.ZonedDateTime startDateTime, java.util.List<Arrival> allArrivals, edu.sc.seis.seisFile.mseed3.FDSNSourceId sourceId)
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.DistanceLengthArgs
getDistanceLengthArgs()
java.util.List<edu.sc.seis.seisFile.Location>
getEventLatLon()
java.time.ZonedDateTime
getOriginTime()
java.lang.String
getOutFileExtension()
java.lang.String
getOutputFormat()
java.io.DataOutputStream
getOutputStream()
java.util.List<RayCalculateable>
getRayCalculatables()
java.util.List<edu.sc.seis.seisFile.Location>
getStationLatLon()
boolean
hasEventLatLon()
boolean
hasStationLatLon()
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)
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_AbstractPhaseTool
appendPhaseName, appendPhaseName, calcSeismicPhases, calcSeismicPhases, clearPhaseNames, clearPhases, createTimeResult, getNumPhases, getPhaseArgs, getRadiusOfEarth, getReceiverDepths, getScatterer, getScattererDepth, getSeismicPhases, getSourceDepths, getTauModelDepthCorrected, getTauModelName, parsePhaseNameList, setModelName, setPhaseNameList, setPhaseNames, 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
-
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
-
sps
protected double sps
deltaT of the seismogram, default is .05 which gives 20 sps.
-
-
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
- Specified by:
validateArguments
in classTauP_Tool
- 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<RayCalculateable> degreesList) throws TauPException
- Throws:
TauPException
-
calcSpikes
public java.util.List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcSpikes(java.util.List<RayCalculateable> rayList, java.util.List<SeismicPhase> phaseList, double sourceDepth, double receiverDepth) throws TauPException
- Throws:
TauPException
-
createEH
public edu.sc.seis.seisFile.mseed3.MSeed3EH createEH(DistanceRay dr, java.time.ZonedDateTime startDateTime, java.util.List<Arrival> allArrivals, edu.sc.seis.seisFile.mseed3.FDSNSourceId sourceId) 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
- Throws:
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
-
getRayCalculatables
public java.util.List<RayCalculateable> getRayCalculatables() throws TauPException
- Throws:
TauPException
-
getOriginTime
public java.time.ZonedDateTime getOriginTime()
-
getDistanceLengthArgs
public DistanceLengthArgs getDistanceLengthArgs()
-
hasEventLatLon
public boolean hasEventLatLon()
-
hasStationLatLon
public boolean hasStationLatLon()
-
getStationLatLon
public java.util.List<edu.sc.seis.seisFile.Location> getStationLatLon() throws TauPException
- Throws:
TauPException
-
getEventLatLon
public java.util.List<edu.sc.seis.seisFile.Location> getEventLatLon() throws TauPException
- Throws:
TauPException
-
-