Interface NetCDFDimensionIndexes.NumericAxisLookup

All Superinterfaces:
NetCDFDimensionIndexes.AxisLookup
All Known Implementing Classes:
NetCDFDimensionIndexes.ArrayNumericAxisLookup, NetCDFDimensionIndexes.RegularNumericAxisLookup
Enclosing class:
NetCDFDimensionIndexes

public static interface NetCDFDimensionIndexes.NumericAxisLookup extends NetCDFDimensionIndexes.AxisLookup
Lookup interface for numeric axes such as elevation or additional numeric dimensions.

Provides resolution from a numeric 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(double value)
    Returns the index of the axis element exactly matching the provided value.
    int
    firstIndexAfter(double value, boolean inclusive)
    Returns the first index whose value is after, or optionally equal to, the provided value.
    int
    lastIndexBefore(double value, boolean inclusive)
    Returns the exclusive upper bound index for values before, or optionally equal to, the provided value.
    double
    valueAt(int index)
    Returns the numeric value at the specified axis index.

    Methods inherited from interface NetCDFDimensionIndexes.AxisLookup

    size
  • Method Details

    • exact

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

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

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

      double valueAt(int index)
      Returns the numeric value at the specified axis index.