I would like to resample a raster from a high resolution to a low resolution (with different extent) in a defined grid cell. Is there a way of using an existing raster file as input for the snapping?
In the raster package, aggregate
and resample
seem to be adequate but I can't find how to do it.
You can launch an external command with system
and call a gdal_translate
or gdal_warp
command. This requires of course the installation of gdal utilities