Closed superdump closed 3 years ago
superchunk_shape = 2^(chunk_log2 + num_lods - 1) log2(superchunk_shape) = log2(2^(chunk_log2 + num_lods - 1)) = (chunk_log2 + num_lods - 1) * log2(2) = (chunk_log2 + num_lods - 1) num_lods = log2(superchunk_shape) - chunk_log2 + 1