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 ndarraydst (
ndarray
) – image as ndarrayA (
Affine
) – Affine transformm, maps from dst_coords to src_coordsresampling (
str
|int
|Resampling
) – str resampling strategysrc_nodata (
int
|float
|None
) – Value representing “no data” in the source imagedst_nodata (
int
|float
|None
) – Value to represent “no data” in the destination imagekwargs – any other args to pass to implementation
- Return type:
- Returns:
dst