I have a geotiff that I read with
rastertif <- terra::rast(x = tif)
This produces the following warning:
[rast] the data in this file are rotated. Use 'rectify' to fix that
So I use rectify like this:
rastertif1 <- terra::rectify(rastertif)
This rotates the raster, but the rectangle is cropped - see the following plot:
The plot should show a completed rotated rectangle, but some parts on top and on the right hand side are cropped.
Any idea how the raster could be rotated while keeping the full extent?