datacube.utils.geometry.warp_affine#

datacube.utils.geometry.warp_affine(src, dst, A, resampling, src_nodata=None, dst_nodata=None, **kwargs)[source]#

Perform Affine warp using best available backend (GDAL via rasterio is the only one so far).

Parameters:
  • src (ndarray) – image as ndarray

  • dst (ndarray) – image as ndarray

  • A (Affine) – Affine transformm, maps from dst_coords to src_coords

  • resampling (str | int | Resampling) – str resampling strategy

  • src_nodata (int | float | None) – Value representing “no data” in the source image

  • dst_nodata (int | float | None) – Value to represent “no data” in the destination image

  • kwargs – any other args to pass to implementation

Return type:

ndarray

Returns:

dst