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 – image as ndarray

  • dst – image as ndarray

  • A – Affine transformm, maps from dst_coords to src_coords

  • resampling (Union[str, int]) – str 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 implementation

Return type

ndarray

Returns

dst