smash.tools.raster_handler.gdal_reproject_raster#

smash.tools.raster_handler.gdal_reproject_raster(dataset, xres, yres)[source]#

Reproject the dataset raster accoding a new resolution in the x and y directions

Parameters:
datasetgdal object from gdal.Open()
xres: resolution in the x direction (columns) in meters
yres: resolution in the y direction (rows) in meters
Returns:
virtual_destinationa virtual gdal raster object at the new resolution

Examples

new_dataset=gdal_reproject_raster(dataset,smash_mesh.cellsize,smash_mesh.cellsize)