Class EarthGridSet.Axis<T>

java.lang.Object
noaa.coastwatch.io.EarthGridSet.Axis<T>
All Implemented Interfaces:
Iterable<T>
Enclosing interface:
EarthGridSet

public static class EarthGridSet.Axis<T> extends Object implements Iterable<T>
An Axis holds information about one of the axes used to select a 2D grid in the set.
  • Constructor Details

    • Axis

      public Axis(String name, String axisType, String units, List<T> values, Class<T> dataType)
      Creates an axis from its properties and data.
      Parameters:
      name - the axis name: time, altitude, etc.
      axisType - the axis type: Time, Height, Spectral, Pressure, etc.
      units - the axis units: seconds since ..., meters, millibars, etc.
      values - the list of axis coordinate values.
      dataType - the datatype class for the axis values.
  • Method Details

    • getName

      public String getName()
    • getAxisType

      public String getAxisType()
    • getUnits

      public String getUnits()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • getValue

      public T getValue(int index)
    • getSize

      public int getSize()
    • getDataType

      public Class<T> getDataType()
    • toString

      public String toString()
      Overrides:
      toString in class Object