I'm having difficulty understanding hyperslab selections, specifically in 3-dimensional datasets. I looked at https://www.hdfgroup.org/HDF5/Tutor/selectsimple.html for examples and they seem to work as intended. I didn't write code for those examples, I just used hdfview to create a test data set and h5dump to view it.
In my particular case, I have a dataset of dimensions (14400,2,165). I'm trying to select all elements at a given "row" of data (i.e. the same value for dimension 0) every 125 "rows". Based on the examples in the aforementioned tutorial, I thought this would be the right selection:
-s 61,0,0 (start/offset: first element of interest)
-S 125,1,1 (stride: every 125 elements along dimension 0)
-k 1,2,165 (block: all elements with the same dim0)
-c 2,1,1 (count: just two "rows" as a test)
What I'd expect to get back are elements
(61,0,0)..(61,0,165),(61,1,0)...(61,1,165)
(186,0,0)..(186,0,165),(186,1,0)...(186,1,165)
but instead what I get is
(61,0,0)..(61,0,165),(61,1,0)...(61,1,165)
(62,0,0)..(62,0,165),(62,1,0)...(62,1,165)
What am I doing wrong?