Function read_raster_band_async

Source
pub async fn read_raster_band_async<T: RasterType>(
    s3_url: &str,
    band_index: usize,
    offset: (isize, isize),
    window_size: (usize, usize),
) -> Result<Array2<T>>
Expand description

Read a raster band window using async-tiff (S3 direct, no GDAL).

This is the async equivalent of gdal_utils::read_raster_band(). Uses a cached TIFF reader for efficiency.

§Arguments

  • s3_url - S3 URL like “s3://bucket/path/to/file.tif”
  • band_index - Band index (1-based, like GDAL)
  • offset - (x_offset, y_offset) in pixels
  • window_size - (width, height) in pixels