Hi John, This looks like an h5dump bug. I entered bug HDFFV-9698 for the issue. If works correctly if you specify the same parameters from a C application.
-Barbara [email protected] -----Original Message----- From: Hdf-forum [mailto:[email protected]] On Behalf Of johnk Sent: Thursday, February 18, 2016 1:04 PM To: HDF Users Discussion List Subject: [Hdf-forum] hyperslab clarification 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? _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
