create_standard_grid: Create a standard raster grid

View source: R/spatial.R

create_standard_gridR Documentation

Create a standard raster grid

Description

Create a standard raster grid

Usage

create_standard_grid(
  extent = c(-180, 180, -90, 90),
  resolution = 1,
  crs = "EPSG:4326"
)

Arguments

extent

Numeric vector c(xmin, xmax, ymin, ymax).

resolution

Cell resolution.

crs

Coordinate reference system.

Value

A terra::SpatRaster with the requested extent, resolution, and coordinate reference system.

Examples

create_standard_grid(c(0, 2, 0, 2), resolution = 1)

metaweave documentation built on Nov. 3, 2026, 9:06 a.m.