Create a reference grid over the spatial extent of the analysis

create_reference_grid(extent, cellsize, output_crs = sf::st_crs(extent))

Arguments

extent

The spatial extent of the analysis as a single POLYGON geometry in either object of class sf or sfc.

cellsize

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.

output_crs

CRS to create the grid in. Can be anything understood by sf::st_crs(). By default equal to the CRS of extent.

Value

The reference grid as an object of class stars.