Class CoordinateTimeAbstract

    • Field Detail

      • code

        protected final int code
      • timeUnit

        protected final ucar.nc2.time.CalendarPeriod timeUnit
      • refDate

        protected final ucar.nc2.time.CalendarDate refDate
      • time2runtime

        protected final int[] time2runtime
    • Method Detail

      • getTimeUdUnit

        public String getTimeUdUnit()
      • setName

        public void setName​(String name)
      • getRefDate

        public ucar.nc2.time.CalendarDate getRefDate()
      • getTimeUnit

        public ucar.nc2.time.CalendarPeriod getTimeUnit()
      • getTime2runtime

        public int[] getTime2runtime()
      • getMasterRuntimeIndex

        public int getMasterRuntimeIndex​(int timeIdx)
      • getOffsetInTimeUnits

        public double getOffsetInTimeUnits​(ucar.nc2.time.CalendarDate start)
      • makeBestFromComplete

        public CoordinateTimeAbstract makeBestFromComplete()
        Implements coverting a "complete best" to a "monotonic best". The reftime is not allowed to decrease
        Returns:
        "monotonic best" CoordinateTimeAbstract, based on this one, which is a "complete best"
      • makeBestFromComplete

        protected abstract CoordinateTimeAbstract makeBestFromComplete​(int[] best,
                                                                       int n)
      • makeCalendarDateRange

        public abstract ucar.nc2.time.CalendarDateRange makeCalendarDateRange​(ucar.nc2.time.Calendar cal)