Uses of Class
llnl.gnem.core.util.TimeT
Package
Description
-
Uses of TimeT in gov.llnl.gnem.apps.coda.common.service.util
Modifier and TypeMethodDescriptionstatic boolean
WaveformUtils.cutSeismograms
(TimeSeries a, TimeSeries b, TimeT startTime, TimeT endTime) static double[]
WaveformUtils.getMaxTime
(TimeSeries waveform, TimeT originTime) This method mimics the getMaxTime method of SacSeismogram, which is NOT purely the same as the methods in the TimeSeries chain. -
Uses of TimeT in llnl.gnem.core.io.SAC
Modifier and TypeMethodDescriptionSACHeader.getBeginTime()
Get the begin Epoch time as a TimeT objectSACHeader.getEndTime()
Get the end Epoch time as a TimeT objectSACHeader.getOriginTime()
Get the origin Epoch time as a TimeT objectSACHeader.getReferenceTime()
Convert the date header fields into a TimeT object Note: if the nzyear...SACFileReader.getStartTime()
Modifier and TypeMethodDescriptionvoid
SACHeader.setBeginTime
(TimeT begintime) b is defined by the start of the seismogram relative to the reference time (nzyear, ...,nzmsec) NOTE the reference time should be already be definedvoid
SACHeader.setOriginTime
(TimeT origintime) Set the origin time relative to the sac file's reference timevoid
Set the nz(date) fields based on a TimeT object -
Uses of TimeT in llnl.gnem.core.util
Modifier and TypeFieldDescriptionstatic final TimeT
Epoch.MAX_POSSIBLE_TIME
static final TimeT
Epoch.MIN_POSSIBLE_TIME
Modifier and TypeMethodDescriptionTimeT.add
(double v) Produce a new TimeT object whose Epoch time is the sum of the Epoch times in this object and the input double (interpreted as an Epoch time).Produce a new TimeT object whose Epoch time is the sum of the Epoch times in this object and the input object.Epoch.getbeginning()
Gets the start of the Epoch as a TimeT objectEpoch.getEndtime()
Gets the endtime attribute of the Epoch objectEpoch.getOffdate()
Gets the offdate attribute of the Epoch objectEpoch.getOndate()
Gets the ondate attribute of the Epoch objectEpoch.getTime()
Gets the time attribute of the Epoch objectstatic TimeT
TimeT.getTimeFromDateString
(String dateStr) static TimeT
TimeT.jdateToTimeT
(int jdate) TimeT.roundToDay()
Round the epoch time to the nearest whole day.TimeT.roundToHour()
Round the epoch time to the nearest whole hour.TimeT.roundToMin()
Round the epoch time to the nearest whole minute.TimeT.roundToSec()
Round the epoch time to the nearest whole second.TimeT.subtract
(double v) Subtract the input TimeT from this TimeT and return the resulting epoch time as a double.Modifier and TypeMethodDescriptionProduce a new TimeT object whose Epoch time is the sum of the Epoch times in this object and the input object.boolean
Epoch.ContainsTime
(TimeT aTime) Determine whether an instant in time falls within this Epochboolean
Return true if this epoch time is greater than or equal to the input epoch timeboolean
Return true if this epoch time is greater than the input epoch timeboolean
Return true if this epoch time is less than or equal to the input epoch timeboolean
Return true if this epoch time is less than the input epoch timevoid
Epoch.setEndtime
(TimeT end) Sets the end time of this Epoch objectvoid
Sets the start time of this Epoch objectSubtract the input TimeT from this TimeT and return the resulting epoch time as a double.double
Subtract the input TimeT from this TimeT and return the resulting epoch time as a double. -
Uses of TimeT in llnl.gnem.core.waveform.seismogram
Modifier and TypeMethodDescriptionSeismicSignal.getEndtime()
Gets the endtime attribute of the CssSeismogram objectTimeSeries.getEndtime()
Gets the endtime attribute of the CssSeismogram objectSeismicSignal.getTime()
Gets the start time of the CssSeismogram as a TimeT objectTimeSeries.getTime()
Gets the start time of the CssSeismogram as a TimeT objectModifier and TypeMethodDescriptionvoid
Truncate the Seismogram to be a subsection of itself.void
void
int
SeismicSignal.getPointsIn
(TimeT start, TimeT end) int
TimeSeries.getPointsIn
(TimeT start, TimeT end) float[]
TimeSeries.getSubSection
(TimeT start, double duration) Gets a float array which is a subsection of the CssSeismogram's time series.float[]
TimeSeries.getSubSection
(TimeT start, TimeT end) Gets a float array which is a subsection of the Seismogram's time series.float[]
TimeSeries.getSubSection
(TimeT start, TimeT end, float[] result) void
void
Sets the time attribute of the CssSeismogram objectModifierConstructorDescriptionTimeSeries
(float[] data, double samprate, TimeT time) TimeSeries
(BinaryData data, double samprate, TimeT time)