Is there a way to retrieve property list from object? For example:
I open file, then I can see that there is a dataset, I open the dataset and I need to check is it chunked or not.
I expect that I need to use int H5Pget_chunk(hid_t plist, int max_ndims, hsize_t * dims) but plist arg is dataset creation property list that were used to create that dataset. How can I get that plist from dataset?
If your goal is to check whether a dataset is chunked or not, you may want to give HDFql a try and do the following in C (which seems to be the programming language you are using):
// get storage type of dataset 'dset' stored in HDF5 file 'file.h5'
hdfql_execute("SHOW STORAGE TYPE file.h5 dset")
if (*hdfql_cursor_get_int(NULL) == HDFQL_CHUNKED)
printf("Dataset is chunked!\n");
printf("Dataset is not chunked!\n");