most of the dataset chunks were aligned starting with 0. for example, if the chunk size is 64, the chunk coordinate should be divisible by 64, such as 128 or 256.
but some dataset chunks are not aligned starting with 0. for example, if the chunk size is 64, the chunk coordinate could be 130 or 258. The offset should be 2. This new code will work with such a case.
most of the dataset chunks were aligned starting with 0. for example, if the chunk size is 64, the chunk coordinate should be divisible by 64, such as 128 or 256.
but some dataset chunks are not aligned starting with 0. for example, if the chunk size is 64, the chunk coordinate could be 130 or 258. The offset should be 2. This new code will work with such a case.