prio_blank_grid: Create a raster with PRIO-GRID ids.

View source: R/utility.R

prio_blank_gridR Documentation

Create a raster with PRIO-GRID ids.

Description

Create a raster with PRIO-GRID ids.

Usage

prio_blank_grid(
  ncol = pgoptions$get_ncol(),
  nrow = pgoptions$get_nrow(),
  extent = pgoptions$get_extent(),
  crs_string = pgoptions$get_crs()
)

Arguments

ncol

Number of columns

nrow

Number of rows

extent

The extent of the raster as a vector c(xmin, xmax, ymin, ymax)

crs_string

A CRS-string. Description of the Coordinate Reference System (map projection) in PROJ.4, WKT or authority:code notation.

Value

SpatRaster

Examples

pg <- prio_blank_grid()

prio-data/priogrid documentation built on Sept. 25, 2024, 1:18 a.m.