The new image is exported as a geotiff. Nothing is returned within R.
Arguments
filename
Filename (and path) to a geotiff image.
outname
Filename (and path) for subset image.
centerx
x coordinate of new center point.
centery
y coordinate of new center point.
centerepsg
Projection of the center point coordinates as 5-digit EPSG code. If missing, assume that point and geotiff have the same projection.
widthx
Desired width of subset image.
widthy
Desired height of subset image.
Author
Sarah Goslee
Details
The new image will be a subset of size (widthx, widthy) with center point (centerx, centery), with the same pixel size. If the center point coordinates are in a different projection than the original image, they will be reprojected.