rasterize | R Documentation |
Interpolate a raster from a mesh
rasterize(x, template = default_template(x), ...)
x |
the mesh as 'sf“ POLYGON |
template |
a raster template see |
... |
further arguments for |
a raster layer
## Not run:
mesh <- fvcom::get_mesh(x, vars = c("u", "v"), what = "lonlat")
uv <- lapply(c("u", "v"), function(f) fvcom::rasterize(mesh[f]))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.