Sparse Raster Grid
class SparseRasterGrid(val latitudes: Axis, val longitudes: Axis, gridValues: DoubleArray) : RasterGrid
A RasterGrid storing only the values that are not missing, suited for sparse grids. Each value takes 12 bytes (its index and itself), against the 8 bytes per cell of DenseRasterGrid, so it takes less memory when fewer than two thirds of the cells hold a value.
Parameters
grid Values
the values, row by row: all longitudes of the first latitude, then of the second, and so on.
Throws
if there is not exactly one value per cell.