Interface NetCDFDimensionIndexes.TimeAxisLookup

All Superinterfaces:
NetCDFDimensionIndexes.AxisLookup
All Known Implementing Classes:
NetCDFDimensionIndexes.ArrayTimeAxisLookup, NetCDFDimensionIndexes.RegularTimeAxisLookup
Enclosing class:
NetCDFDimensionIndexes

public static interface NetCDFDimensionIndexes.TimeAxisLookup extends NetCDFDimensionIndexes.AxisLookup
Lookup interface for temporal axes such as the TIME dimension.

Provides resolution from a temporal value to its corresponding axis index, supporting both exact matches and range queries. Implementations may be backed by regular (start + increment) or irregular coordinate variables.

All lookup methods assume the underlying axis values are ordered.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    exact(Date value)
    Returns the index of the axis element exactly matching the provided value.
    int
    firstIndexAfter(Date value, boolean inclusive)
    Returns the first index whose value is after, or optionally equal to, the provided value.
    int
    lastIndexBefore(Date value, boolean inclusive)
    Returns the exclusive upper bound index for values before, or optionally equal to, the provided value.
    valueAt(int index)
    Returns the temporal value at the specified axis index.

    Methods inherited from interface NetCDFDimensionIndexes.AxisLookup

    size
  • Method Details

    • exact

      int exact(Date value)
      Returns the index of the axis element exactly matching the provided value.
    • firstIndexAfter

      int firstIndexAfter(Date value, boolean inclusive)
      Returns the first index whose value is after, or optionally equal to, the provided value.
    • lastIndexBefore

      int lastIndexBefore(Date value, boolean inclusive)
      Returns the exclusive upper bound index for values before, or optionally equal to, the provided value.
    • valueAt

      Date valueAt(int index)
      Returns the temporal value at the specified axis index.