I have an
.h5 file that I can read with Matlab, IDL, and python. However, both Matlab and python load this file but the Dataset gets a Datatype
H5T_STD_U16LE (uint16). Basically I have values of floating point that get converted to integer in the reading process, making values like 0.1 into just 0.
Reading with IDL somehow ignores the internal flags in
HDF5 file and gives me proper values.
Is there a way in Matlab or python to force read HDF5 file Datasets with double precision?
In Matlab I do:
hinfo = hdf5info('./data.h5'); dset = hdf5read(hinfo.GroupHierarchy.Groups(1).Groups(1).Datasets(1));
import h5py f = h5py.File('./data.h5', 'r') dset = f['entry']['data']['data']