create_reference_grid.Rd
Create a reference grid over the spatial extent of the analysis
create_reference_grid(extent, cellsize, output_crs = sf::st_crs(extent))
The spatial extent of the analysis as a single POLYGON
geometry in either object of class sf
or
sfc
.
Cellsize in units of output_crs
(usually meters). Cells
are always squares, i.e. the width and height of the cells are both equal
to cellsize
.
CRS to create the grid in. Can be anything understood by
sf::st_crs()
. By default equal to the CRS of extent
.
The reference grid as an object of class
stars
.