buffer_extent.Rd
Ensure a raster extent aligns to a clean divisor.
buffer_extent(e1, e2)
e1 | input |
---|---|
e2 | grain size |
This function is used to generate extents that have tidy boundaries, i.e. extents that align to a clean whole number like "10000".
(We can't use the S4 group generic because raster has set that specifically for use with '+' and '-'.)
library(raster)#>#> class : Extent #> xmin : 0 #> xmax : 4 #> ymin : 0 #> ymax : 4title("boundaries on clean alignment to 0.1")par(p)