Commits
clee83 committed 50aa2d05e26
Force the chunk size to be equal to or smaller than the number of element when creating an HDF5 dataset. (Bugzilla #1373) An HDF-EOS2 file attached to bugzilla #1373 contains a field whose size is 406 * 271. One weird thing is that its chunk size is 10 * 1354. It seems this is allowed in HDF4, but this is not in HDF5. During H5Dcreate(), I got the following error: #009: h:\hdf\hdf5-1.8.1\src\h5dint.c line 1209 in H5D_create(): chunk size mus t be <= maximum dimension size for fixed-sized dimensions I think HDF5 does not allow this big chunk size as the message implies. So, this change forces the chunk size to be no bigger than the number of elements.