Package ucar.nc2.grib.coord
Class CoordinateTime
- java.lang.Object
-
- ucar.nc2.grib.coord.CoordinateTimeAbstract
-
- ucar.nc2.grib.coord.CoordinateTime
-
- All Implemented Interfaces:
Coordinate
@Immutable public class CoordinateTime extends CoordinateTimeAbstract implements Coordinate
Time coordinates that are offsets from the reference date (not intervals).- Since:
- 11/24/13
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoordinateTime.Builder1
static class
CoordinateTime.Builder2
-
Nested classes/interfaces inherited from interface ucar.nc2.grib.coord.Coordinate
Coordinate.Type
-
-
Field Summary
-
Fields inherited from class ucar.nc2.grib.coord.CoordinateTimeAbstract
cdf, code, MIXED_INTERVALS, name, refDate, time2runtime, timeUnit
-
-
Constructor Summary
Constructors Constructor Description CoordinateTime(int code, CalendarPeriod timeUnit, CalendarDate refDate, List<Integer> offsetSorted, int[] time2runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Counters
calcDistributions()
boolean
equals(Object o)
int
estMemorySize()
int
getIndex(Object val)
List<Integer>
getOffsetSorted()
int
getSize()
Coordinate.Type
getType()
Object
getValue(int idx)
List<?>
getValues()
int
hashCode()
protected CoordinateTimeAbstract
makeBestFromComplete(int[] best, int n)
CalendarDateRange
makeCalendarDateRange(Calendar cal)
void
showCoords(Formatter info)
void
showInfo(Formatter info, Indent indent)
-
Methods inherited from class ucar.nc2.grib.coord.CoordinateTimeAbstract
getCode, getMasterRuntimeIndex, getName, getNCoords, getOffsetInTimeUnits, getRefDate, getTime2runtime, getTimeUdUnit, getTimeUnit, getUnit, makeBestFromComplete, setName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.nc2.grib.coord.Coordinate
getCode, getName, getNCoords, getUnit
-
-
-
-
Constructor Detail
-
CoordinateTime
public CoordinateTime(int code, CalendarPeriod timeUnit, CalendarDate refDate, List<Integer> offsetSorted, int[] time2runtime)
-
-
Method Detail
-
getValues
public List<?> getValues()
- Specified by:
getValues
in interfaceCoordinate
-
getIndex
public int getIndex(Object val)
- Specified by:
getIndex
in interfaceCoordinate
-
getValue
public Object getValue(int idx)
- Specified by:
getValue
in interfaceCoordinate
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceCoordinate
-
getType
public Coordinate.Type getType()
- Specified by:
getType
in interfaceCoordinate
-
estMemorySize
public int estMemorySize()
- Specified by:
estMemorySize
in interfaceCoordinate
-
makeCalendarDateRange
public CalendarDateRange makeCalendarDateRange(Calendar cal)
- Specified by:
makeCalendarDateRange
in classCoordinateTimeAbstract
-
showInfo
public void showInfo(Formatter info, Indent indent)
- Specified by:
showInfo
in interfaceCoordinate
-
showCoords
public void showCoords(Formatter info)
- Specified by:
showCoords
in interfaceCoordinate
-
calcDistributions
public Counters calcDistributions()
- Specified by:
calcDistributions
in interfaceCoordinate
-
makeBestFromComplete
protected CoordinateTimeAbstract makeBestFromComplete(int[] best, int n)
- Specified by:
makeBestFromComplete
in classCoordinateTimeAbstract
-
-