public abstract static class TimeVariableFactory.CDFTimeVariable extends java.lang.Object implements TimeVariableX
| Modifier and Type | Method and Description |
|---|---|
double |
getFirstMilliSecond()
Returns the millisecond offset of the first record using Epoch 0
as the base time
This number may be useful as a base time for a time instant model
when looking at high time resolution data.
|
java.lang.String |
getName() |
TimePrecision |
getPrecision()
Returns the time precisio
|
java.nio.ByteBuffer |
getRawBuffer()
Returns the raw buffer
|
int[] |
getRecordRange(double[] timeRange)
Returns the record range corresponding to the time range
|
int[] |
getRecordRange(double[] timeRange,
TimeInstantModel ts) |
int[] |
getRecordRange(int[] startTime,
int[] stopTime)
Returns range of records which fall within the specified range
of times relative to the base of the given
time instant model. |
int[] |
getRecordRange(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
Returns the record range corresponding to the start/stop time range of given
time instant model
|
double[] |
getTimes()
Returns relative times using the default
time instant model. |
double[] |
getTimes(double[] timeRange) |
double[] |
getTimes(double[] timeRange,
TimeInstantModel ts)
Returns relative times for the specified time range using the given
time instant model. |
double[] |
getTimes(int[] recordRange)
Returns relative times for the specified record range using the default
time instant model. |
double[] |
getTimes(int[] startTime,
int[] stopTime)
Returns relative times for the specified time range using the default
time instant model. |
double[] |
getTimes(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
Returns relative times for the specified time range using the given
time instant model. |
double[] |
getTimes(int[] recordRange,
TimeInstantModel ts)
Returns relative times for the specified record range using the specified
time instant model. |
double[] |
getTimes(TimeInstantModel ts)
Returns relative times using the specified
time instant model. |
abstract boolean |
isTT2000() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanSupportPrecisionpublic java.lang.String getName()
getName in interface TimeVariablepublic TimePrecision getPrecision()
TimeVariableXgetPrecision in interface TimeVariablegetPrecision in interface TimeVariableXpublic double[] getTimes()
TimeVariabletime instant model.getTimes in interface TimeVariablepublic double[] getTimes(TimeInstantModel ts) throws java.lang.Throwable
TimeVariabletime instant model.getTimes in interface TimeVariablets - the time instant modeljava.lang.Throwable - if an error occurspublic double[] getTimes(int[] recordRange)
throws java.lang.Throwable
TimeVariabletime instant model.getTimes in interface TimeVariablerecordRange - a record rangejava.lang.Throwable - if an error occurspublic double[] getTimes(int[] recordRange,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariabletime instant model.getTimes in interface TimeVariablerecordRange - a record rangets - the time instant modeljava.lang.Throwable - if an error occurspublic double[] getTimes(double[] timeRange)
public double[] getTimes(double[] timeRange,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariableXtime instant model.
getTimes in interface TimeVariableXtimeRange - relative time rangets - a time instant modeljava.lang.Throwable - if an error occurspublic double[] getTimes(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariabletime instant model.
getTimes in interface TimeVariablestartTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.stopTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.ts - the time instant modeljava.lang.Throwable - if an error occurspublic double[] getTimes(int[] startTime,
int[] stopTime)
throws java.lang.Throwable
TimeVariabletime instant model.
getTimes in interface TimeVariablestartTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.stopTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.java.lang.Throwable - if an error occurspublic int[] getRecordRange(double[] timeRange)
throws java.lang.Throwable
TimeVariableXgetRecordRange in interface TimeVariableXtimeRange - time rangejava.lang.Throwable - if an error occurspublic int[] getRecordRange(int[] startTime,
int[] stopTime)
throws java.lang.Throwable
TimeVariabletime instant model.getRecordRange in interface TimeVariablestartTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.stopTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.java.lang.Throwable - if an error occurspublic int[] getRecordRange(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariableXgetRecordRange in interface TimeVariableXstartTime - relative start timestopTime - relative stop timets - a time instant modeljava.lang.Throwable - if an error occurspublic int[] getRecordRange(double[] timeRange,
TimeInstantModel ts)
throws java.lang.Throwable
java.lang.Throwablepublic double getFirstMilliSecond()
TimeVariableThis number may be useful as a base time for a time instant model when looking at high time resolution data.
getFirstMilliSecond in interface TimeVariablepublic abstract boolean isTT2000()
isTT2000 in interface TimeVariablepublic java.nio.ByteBuffer getRawBuffer()
TimeVariableXgetRawBuffer in interface TimeVariableX