guess_chunk_size Subroutine

subroutine guess_chunk_size(dims, chunk_size)

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

Arguments

Type IntentOptional AttributesName
integer(kind=HSIZE_T), intent(in) :: dims(:)
integer(kind=HSIZE_T), intent(out) :: chunk_size(:)

Called by

proc~~guess_chunk_size~~CalledByGraph proc~guess_chunk_size guess_chunk_size proc~set_deflate set_deflate proc~set_deflate->proc~guess_chunk_size proc~hdf_create hdf_create proc~hdf_create->proc~set_deflate interface~hdf_create hdf_create interface~hdf_create->proc~hdf_create proc~hdf_write_scalar_i64 hdf_write_scalar_i64 proc~hdf_write_scalar_i64->interface~hdf_create proc~hdf_write_scalar_i32 hdf_write_scalar_i32 proc~hdf_write_scalar_i32->interface~hdf_create proc~hdf_write_scalar_r64 hdf_write_scalar_r64 proc~hdf_write_scalar_r64->interface~hdf_create proc~hdf_write_scalar_r32 hdf_write_scalar_r32 proc~hdf_write_scalar_r32->interface~hdf_create proc~hdf_write_8d hdf_write_8d proc~hdf_write_8d->interface~hdf_create interface~hdf_write_scalar_r32 hdf_write_scalar_r32 interface~hdf_write_scalar_r32->proc~hdf_write_scalar_r32 interface~hdf_write_scalar_i64 hdf_write_scalar_i64 interface~hdf_write_scalar_i64->proc~hdf_write_scalar_i64 interface~hdf_write_scalar_r64 hdf_write_scalar_r64 interface~hdf_write_scalar_r64->proc~hdf_write_scalar_r64 interface~hdf_write_scalar_i32 hdf_write_scalar_i32 interface~hdf_write_scalar_i32->proc~hdf_write_scalar_i32

Contents

None