getRasterTemplate | R Documentation |
Alternatively-named function to initialise an empty SpatRaster for the UK or a sub-region, with original name for back-compatability
getRasterTemplate(domain = "UK", res = 100, proj = NULL)
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". |
An empty SpatRaster (from the terra package) object covering the domain.
r <- getRasterTemplate(domain = "UK", res = 10000, proj = 'OSGB')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.