xdem.DEM.reproject

Contents

xdem.DEM.reproject#

DEM.reproject(ref=None, crs=None, res=None, grid_size=None, bounds=None, nodata=None, dtype=None, resampling=Resampling.bilinear, force_source_nodata=None, inplace=False, silent=False, n_threads=0, memory_limit=64)#

Reproject raster to a different geotransform (resolution, bounds) and/or coordinate reference system (CRS).

Match-reference: a reference raster can be passed to match resolution, bounds and CRS during reprojection.

Alternatively, the destination resolution, bounds and CRS can be passed individually.

Any resampling algorithm implemented in Rasterio can be passed as a string.

Parameters:
Return type:

Optional[TypeVar(RasterType, bound= Raster)]

Returns:

Reprojected raster (or None if inplace).