rasterize: Interpolate a raster from a mesh

View source: R/raster.R

rasterizeR Documentation

Interpolate a raster from a mesh

Description

Interpolate a raster from a mesh

Usage

rasterize(x, template = default_template(x), ...)

Arguments

x

the mesh as 'sf“ POLYGON

template

a raster template see default_template and mur_template

...

further arguments for st_rasterize

Value

a raster layer

Examples

## 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)

BigelowLab/fvcom documentation built on Nov. 8, 2024, 2:24 p.m.