getSpatRasterTemplate | R Documentation |
Function to initialise an empty SpatRaster for the UK or a sub-region
getSpatRasterTemplate(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 <- getSpatRasterTemplate(domain = "UK", res = 10000, proj = 'OSGB')
r <- getSpatRasterTemplate(domain = "Scotland", res = 10000, proj = 'OSGB')
r <- getSpatRasterTemplate(domain = "NT_10km", res = 100, proj = 'OSGB')
r <- getSpatRasterTemplate(domain = "UK", res = 10000, proj = 'OSGB')
r <- getSpatRasterTemplate(domain = "UK", res = 0.1, proj = 'WGS84')
r <- getSpatRasterTemplate(domain = "UK_NAME", proj = 'WGS84')
r <- getSpatRasterTemplate(domain = "UK_NAME", proj = 'WGS84')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.