public interface GridSubsetReader
GridSubsetReader
is an interface that any EarthDataReader
can implement to indicate that it is capable of
reading grid data in a subset/subsampled form. It contains only
one method: getGridSubset(java.lang.String, int[], int[], int[])
.Modifier and Type | Method and Description |
---|---|
Grid |
getGridSubset(java.lang.String varName,
int[] start,
int[] stride,
int[] length)
Reads a subset of a data grid.
|
Grid getGridSubset(java.lang.String varName, int[] start, int[] stride, int[] length) throws java.io.IOException
EarthDataReader.getVariable(String)
method except that it reads
only grid variables and is capable of returning just a subset of
the data values. In some cases, such as across a network
connection, it may be more efficient to access only a subset or
subsampling of data in a variable.varName
- the variable name to access.start
- the 2D starting data coordinates.stride
- the 2D data stride.length
- the total number of values to read in each dimension.java.io.IOException
- if the data source had I/O errors.