getRasterTemplate: Alternatively-named function to initialise an empty...

View source: R/spCEH.R

getRasterTemplateR Documentation

Alternatively-named function to initialise an empty SpatRaster for the UK or a sub-region, with original name for back-compatability

Description

Alternatively-named function to initialise an empty SpatRaster for the UK or a sub-region, with original name for back-compatability

Usage

getRasterTemplate(domain = "UK", res = 100, proj = NULL)

Arguments

domain

Domain of the output raster: "UK", "Scotland" etc.

res

Resolution of the output raster in metres (for OSGB) or decimal degrees (WGS84). For the 'UK_NAME' domain, the res is pre-specified.

proj

CRS (coordinate reference system) of the output raster: "OSGB" or "WGS84".

Value

An empty SpatRaster (from the terra package) object covering the domain.

Examples

r <- getRasterTemplate(domain = "UK", res = 10000, proj = 'OSGB')

NERC-CEH/spCEH documentation built on June 12, 2024, 2:45 p.m.