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 classCoordinateTime.Builder1static classCoordinateTime.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, ucar.nc2.time.CalendarPeriod timeUnit, ucar.nc2.time.CalendarDate refDate, List<Integer> offsetSorted, int[] time2runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ucar.nc2.util.CounterscalcDistributions()booleanequals(Object o)intestMemorySize()intgetIndex(Object val)List<Integer>getOffsetSorted()intgetSize()Coordinate.TypegetType()ObjectgetValue(int idx)List<?>getValues()inthashCode()protected CoordinateTimeAbstractmakeBestFromComplete(int[] best, int n)ucar.nc2.time.CalendarDateRangemakeCalendarDateRange(ucar.nc2.time.Calendar cal)voidshowCoords(Formatter info)voidshowInfo(Formatter info, ucar.nc2.util.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
-
-
-
-
Method Detail
-
getValues
public List<?> getValues()
- Specified by:
getValuesin interfaceCoordinate
-
getIndex
public int getIndex(Object val)
- Specified by:
getIndexin interfaceCoordinate
-
getValue
public Object getValue(int idx)
- Specified by:
getValuein interfaceCoordinate
-
getSize
public int getSize()
- Specified by:
getSizein interfaceCoordinate
-
getType
public Coordinate.Type getType()
- Specified by:
getTypein interfaceCoordinate
-
estMemorySize
public int estMemorySize()
- Specified by:
estMemorySizein interfaceCoordinate
-
makeCalendarDateRange
public ucar.nc2.time.CalendarDateRange makeCalendarDateRange(ucar.nc2.time.Calendar cal)
- Specified by:
makeCalendarDateRangein classCoordinateTimeAbstract
-
showInfo
public void showInfo(Formatter info, ucar.nc2.util.Indent indent)
- Specified by:
showInfoin interfaceCoordinate
-
showCoords
public void showCoords(Formatter info)
- Specified by:
showCoordsin interfaceCoordinate
-
calcDistributions
public ucar.nc2.util.Counters calcDistributions()
- Specified by:
calcDistributionsin interfaceCoordinate
-
makeBestFromComplete
protected CoordinateTimeAbstract makeBestFromComplete(int[] best, int n)
- Specified by:
makeBestFromCompletein classCoordinateTimeAbstract
-
-