Hi, all. I’m very new to HDF5 and just have finished quickly skimming the API reference.
I found that selecting specific rows or columns of a two-dimensional array can be achieved by using the
H5S_SELECT_HYPERSLAB function and the
H5S_SELECT_OR operator. However, I would like to select specific rows and columns at the same time. I want this because I only need a small portion (say 10%) of rows and columns in a large dataset, and thus reading rows and then dropping some columns will require unnecessary I/O and decompression operations. I thought there should be an operator function that returns an intersection of two (i.e., rows and columns) hyperslab selections, but I could not find such an API.
So, my question is how we should select or read specific rows and columns in a 2D dataset without wasting time? Any APIs I’m missing?