datacube.utils.geometry.rio_reproject

datacube.utils.geometry.rio_reproject(src, dst, s_gbox, d_gbox, resampling, src_nodata=None, dst_nodata=None, **kwargs)[source]

Perform reproject from ndarray->ndarray using rasterio as backend library.

Parameters
  • src – image as ndarray

  • dst – image as ndarray

  • s_gbox – GeoBox of source image

  • d_gbox – GeoBox of destination image

  • resampling (Union[str, int]) – str|rasterio.warp.Resampling resampling strategy

  • src_nodata (Union[float, int, None]) – Value representing “no data” in the source image

  • dst_nodata (Union[float, int, None]) – Value to represent “no data” in the destination image

  • kwargs – any other args to pass to rasterio.warp.reproject

Return type

ndarray

Returns

dst