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
,Resampling
]) – str resampling strategysrc_nodata (
Union
[int
,float
,None
]) – Value representing “no data” in the source imagedst_nodata (
Union
[int
,float
,None
]) – Value to represent “no data” in the destination imagekwargs – any other args to pass to implementation
- Return type
- Returns
dst