A crop (or extend), it snaps the input extent to the origin of the input extent (based on the dimension) #' Note that snap is modelled on the behaviour of the raster package, and is different from projwin in GDAL (WIP to illustrate).
align_extent(x, dimension, extent = NULL, snap = c("out", "near", "in"))
extent
integer ncol, nrow
numeric extent xmin,xmax,ymin,ymax
out by default, may be near or in
aligned extent