go-native-netcdf icon indicating copy to clipboard operation
go-native-netcdf copied to clipboard

`VarGetter.GetSlice` is useful only for 1 dimensional data

Open redgis opened this issue 1 year ago • 0 comments

If a variable has data of multiple dimension, GetSlice will retrieve all the data of the slice of the first dimension.

Example : variable of dimensions time, latitude, longitude

GetSlice(0, 2) will retrieve the data for all latitude, longitude, for the time 0 and 1.

I am wondering how this API could be improved to allow slicing all dimensions.

redgis avatar Feb 05 '24 17:02 redgis