HDFGroup / HDFGroup/hdfview

Stride error in HDFView when using Open As

Open
#354 3 comments 0 reactions 1 assignee Claimed by @mattjala View on GitHub
Component - HDFView
Dominant language
Java
Stars
153
Forks
26
Avg merge
47m
Merged PRs (30d)
1

Description

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](https://github.com/user-attachments/files/20126972/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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.