hdfview icon indicating copy to clipboard operation
hdfview copied to clipboard

Stride error in HDFView when using Open As

Open lackyO3 opened this issue 8 months ago • 3 comments

I believe HDFView 3.2.2 (and earler) has a stride error when using Open As. The file containing a test array is here:

ScaledArray.h5.gz

The test array was produced by generated a 4-d array in which the elements are the euclidian distance (in 4D) from the origin to the array indexes corresponding to that element (i.e. element(i,j,k,l) = sqrt(i**2+j**2+k**2+l**2)). I would therefore expect an image from any slice of the array to look like graduated colored rings with the origin at the 0,0,0,0 element.

I use Open As to open a 4 dimensional dataset. I then set the dimension order to be 1,0,2,3, as in:

Image

and I get this image, which looks to me like classic case of a stride error:

Image

lackyO3 avatar May 09 '25 18:05 lackyO3