pub fn read_raster_band<T: RasterType>(
raster_path: &Path,
band_index: usize,
offset: (isize, isize),
window_size: (usize, usize),
) -> Array2<T>Expand description
Reads a raster band window into a 2D array.
Replaces the duplicated Dataset::open → rasterband → read_as → to_array pattern
found in io.rs::read_block(), io.rs::read_block_layer_idx(), and
processing.rs::read_block_hybrid().