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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected doubledeltaT of the seismogram, default is .05 which gives 20 sps.static final intstatic final intFields inherited from class edu.sc.seis.TauP.cmdline.TauP_AbstractPhaseTool
phaseNamesFields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidboxcar(float[] data, float val, float dur, float deltaT) static voidboxcarDerivative(float[] data, float val, float dur, float deltaT) calcAll(List<SeismicPhase> phaseList, List<RayCalculateable> shootables) List<edu.sc.seis.seisFile.mseed3.MSeed3Record>calcSpikes(List<RayCalculateable> degreesList) List<edu.sc.seis.seisFile.mseed3.MSeed3Record>calcSpikes(List<RayCalculateable> rayList, List<SeismicPhase> phaseList) static float[][]calcThetaTimeseriesRTZ(double degrees, List<Arrival> allArrivals, int startTime, double deltaT, int numSamples) List<edu.sc.seis.seisFile.mseed3.MSeed3Record>calcWKBJ(List<DistanceRay> degreesList) WARNING: Experimental.edu.sc.seis.seisFile.mseed3.MSeed3EHcreateEH(DistanceRay dr, ZonedDateTime startDateTime, List<Arrival> allArrivals, edu.sc.seis.seisFile.mseed3.FDSNSourceId sourceId) voiddestroy()static float[]dumbconvolve(float[] a, float[] b) static float[][]effectiveSourceTerm(float momentMag, float deltaT, int numSamples) doubleGet the value of deltaT.List<edu.sc.seis.seisFile.LatLonLocatable>List<edu.sc.seis.seisFile.LatLonLocatable>booleanbooleanstatic voidheavyside2ndDerivative(float[] data, float val, float deltaT) voidinit()List<edu.sc.seis.seisFile.mseed3.MSeed3Record>packageMSeed3(float[] vertical, float[] radial, float[] transverse, String staCode, int startSecOffset) edu.sc.seis.seisFile.mseed3.MSeed3RecordpackageMSeed3(float[] data, String staCode, String sourceCode, String subsourceCode, int startSecOffset) static voidsecondDerivative(float[] data, float deltaT) voidsetDeltaT(double v) Set the value of deltaT.voidsetQuakemlText(String quakemlText) voidsetStationxmlText(String staxmlText) voidstart()static voidtrapazoid(float[] data, float m, float rise, float dur, float deltaT) voidMethods 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, setTauModelMethods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
Field Details
-
RAD_IDX
public static final int RAD_IDX- See Also:
-
TRANS_IDX
public static final int TRANS_IDX- See Also:
-
VERT_IDX
public static final int VERT_IDX- See Also:
-
sps
protected double spsdeltaT of the seismogram, default is .05 which gives 20 sps.
-
-
Constructor Details
-
TauP_Spikes
public TauP_Spikes()
-
-
Method Details
-
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
- Specified by:
validateArgumentsin classTauP_Tool- Throws:
TauPException
-
init
- Overrides:
initin classTauP_AbstractPhaseTool- Throws:
TauPException
-
start
- Specified by:
startin classTauP_Tool- Throws:
IOExceptionTauPException
-
calcSpikes
public List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcSpikes(List<RayCalculateable> degreesList) throws TauPException - Throws:
TauPException
-
calcSpikes
public List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcSpikes(List<RayCalculateable> rayList, List<SeismicPhase> phaseList) throws TauPException - Throws:
TauPException
-
createEH
public edu.sc.seis.seisFile.mseed3.MSeed3EH createEH(DistanceRay dr, ZonedDateTime startDateTime, List<Arrival> allArrivals, edu.sc.seis.seisFile.mseed3.FDSNSourceId sourceId) throws TauPException - Throws:
TauPException
-
packageMSeed3
-
packageMSeed3
-
calcWKBJ
public List<edu.sc.seis.seisFile.mseed3.MSeed3Record> calcWKBJ(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, List<Arrival> allArrivals, int startTime, double deltaT, int numSamples) throws TauPException - Throws:
TauPException
-
getOutputStream
- Throws:
IOException
-
calcAll
public List<Arrival> calcAll(List<SeismicPhase> phaseList, List<RayCalculateable> shootables) throws TauPException - Throws:
TauPException
-
destroy
- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
getOutputFormat
- Specified by:
getOutputFormatin classTauP_Tool
-
getOutFileExtension
- Overrides:
getOutFileExtensionin classTauP_Tool
-
getRayCalculatables
- Throws:
TauModelException
-
getOriginTime
-
getDistanceLengthArgs
-
hasEventLatLon
public boolean hasEventLatLon() -
hasStationLatLon
public boolean hasStationLatLon() -
getStationLatLon
- Throws:
TauPException
-
getEventLatLon
- Throws:
TauPException
-
setQuakemlText
-
setStationxmlText
-