I'm using some HDF5 Files in my C++ program and I have a question regarding the H5Dopen
function. Is it possible to get the dimensions of a hdf5 dataset in a given file?
hid_t file, dset;
herr_t status;
file = H5Fopen (filenameField, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen (file, "/xField", H5P_DEFAULT);
before I do the next line I want to get the dimensions of dset
.
status = H5Dread (dset, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &readBuf[0]);
I only found H5Dget_storage_size
, but that does not fit my case.
Does anyone knows how to do that?