based on https://github.com/h5py/h5py/blob/master/h5py/_hl/filters.py refer to https://support.hdfgroup.org/HDF5/Tutor/layout.html Repeatedly loop over the axes, dividing them by 2. Stop when: 1a. We're smaller than the target chunk size, OR 1b. We're within 50% of the target chunk size, AND 2. The chunk is smaller than the maximum chunk size
Element size larger than CHUNK_MAX
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=HSIZE_T), | intent(in) | :: | dims(:) | |||
integer(kind=HSIZE_T), | intent(out) | :: | chunk_size(:) |