Class NetCDFImageIndexResolver

Object
NetCDFImageIndexResolver

public final class NetCDFImageIndexResolver extends Object
Resolves a global image index into the owning variable and its logical non-spatial dimension indexes.

Example

Consider a dataset with two variables:

  • surface_temperature with 3 time steps
  • air_temperature with 3 time steps and 2 elevation levels
The resulting flattened image indexes could be:
 Index  Variable             Time index   Elevation index
 -------------------------------------------------------
   0    surface_temperature      0              -
   1    surface_temperature      1              -
   2    surface_temperature      2              -

   3    air_temperature          0              0
   4    air_temperature          0              1
   5    air_temperature          1              0
   6    air_temperature          1              1
   7    air_temperature          2              0
   8    air_temperature          2              1
 
Given a global image index, this resolver identifies:
  • the corresponding variable (e.g. air_temperature)
  • the logical indexes along non-spatial dimensions (e.g. time=1, elevation=0)
For example:
  • index 1 -> surface_temperature, time=1
  • index 6 -> air_temperature, time=1, elevation=1
  • Constructor Details

    • NetCDFImageIndexResolver

      public NetCDFImageIndexResolver(List<VariableAdapter> variableAdapters)
      Build the ImageIndexResolver on top of the available VariableAdapters, provided in the same order they get discovered from the originating NetCDF.
  • Method Details