Package org.geotools.imageio.netcdf
Class NetCDFImageIndexResolver
Object
NetCDFImageIndexResolver
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
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 1Given 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)
- index 1 -> surface_temperature, time=1
- index 6 -> air_temperature, time=1, elevation=1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of resolving a variable selection into index positions. -
Constructor Summary
ConstructorsConstructorDescriptionNetCDFImageIndexResolver(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 Summary
Modifier and TypeMethodDescriptionresolve(int imageIndex) Resolve a global imageIndex to the corresponding Variable and the underlying dimension indices.
-
Constructor Details
-
NetCDFImageIndexResolver
Build the ImageIndexResolver on top of the available VariableAdapters, provided in the same order they get discovered from the originating NetCDF.
-
-
Method Details
-
resolve
Resolve a global imageIndex to the corresponding Variable and the underlying dimension indices.
-