I have an application which generates chunked datasets in HDF5 format. I wish to read these in R, for which the rhdf5 package is very helpful -- thanks! However, I wish to set the chunk cache size from within R to allow quicker access to the data. To do this, I first wish to query the chunk size used to create each dataset.
I notice that H5Dget_create_plist is not yet implemented in rhdf5. I have therefore tried to write my own wrapper around the C H5Dget_create_plist() function. However, the hid_t IDs of my rhdf5-provided datasets are not being recognised:
f <- H5Fcreate("myfile.h5") s <- H5Screate(10,10) d <- H5Dcreate(f, "data", "H5T_IEEE_F32LE", s) myH5Dget_create_plist(d@ID) HDF5-DIAG: Error detected in HDF5 (1.8.14) thread 0: #000: H5D.c line 571 in H5Dget_create_plist(): not a dataset major: Invalid arguments to routine minor: Inappropriate type
I wonder if rhdf5 is using a different HDF5 library compared to my system-wide installation which my C-wrapper uses?
Thanks,
Chris