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 (
ndarray
) – image as ndarraydst (
ndarray
) – image as ndarrays_gbox (
GeoBox
) – GeoBox of source imaged_gbox (
GeoBox
) – GeoBox of destination imageresampling (
str
|int
|Resampling
) – str|rasterio.warp.Resampling 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
rasterio.warp.reproject
- Return type:
- Returns:
dst