raster_tools.Raster.get_chunk_rasters#

Raster.get_chunk_rasters()[source]#

Return the underlying data chunks as an array of Rasters.

This returns a 3D array where each element corresponds to a chunk of data. Each element is a Raster wrapping the corresponding chunk. The dimensions of the array are (n-bands, y-chunks, x-chunks). For example, if a Raster has 2 bands, 3 chunks in the y direction, and 4 chunks in the x direction, this method would produce an array of Rasters with shape (2, 3, 4).

Returns

The 3D numpy array of chunk Rasters.

Return type

numpy.ndarray