While saving dataset (15,60) single type (32b) data to binary (LE/BE/Native) file, the expected length of the resulting file is 15604=3600 bytes.
Unexpectedly, the length was longer and i do not correctly read data from this file.
The case does not depend on dataset dimension and type.
I do not have an explanation for this phenomenon.
It was hard to find reliability file in direct availability. Sorry for delay.
Nevertheless Any file from this list
Datasets (CM1/CM2, 60*15, 8-bit integer) have the correct exported file length (900 bytes). Its OK
But datasets with other data types adds unexpected bytes
Pressure (101 32-bit floating-point) has 408 vs. (expected) 404 bytes
DateTime (60157, 16-bit integer) has 12720 vs. (expected) 12600 bytes
While i’m searching my files I stumbled upon an unfamiliar function.
Why there is no dataset export from hdf4 files?
Alex,
What version of HDFView are you using? If you are not using the latest, could you try.
Note that I have tried with HDFView 3.0 and got the correct 12600 for the DateTime dataset. A couple of things to note (and I will be investigating futher) Open the file R/W (default is R/O). Right click from the treeview to export the whole dataset. If you open the dataset and choose export, only the current page is exported (and works in both R/W and R/O file modes).
Dear Allen,
i’ve install the new HDFview version (3.1.0) and repeated uploading dataset from main menu and from the dataset table menu. The result is repeated too. I’ve got files with different length.