make_chunk_index function

Generate an index of chunk offsets and sizes for iterating a raster