voronoi_grid: Calculate the Domain Area per Grid Point

View source: R/Spatial utilities.R

voronoi_gridR Documentation

Calculate the Domain Area per Grid Point

Description

This function takes an array of a variable, and an array of water thicknesses to perform a weighted average across depth. The depth window to be averaged can be specified, so this function can be used to create both shallow and deep layers (or more for that matter).

Usage

voronoi_grid(points, area)

Arguments

points

A Simple Feature object og the grid points within the model domain.

area

A Simple Feature object containing the model domain.

Value

the 'points' object is returned, but instead of points, the geometry column now contains polygons representing the area closest to each point. A column for the size of this area is also gained.

See Also

Other NEMO-MEDUSA spatial tools: calculate_depth_share(), calculate_proximity_weight(), netcdf_scheme_helpers, scheme_column(), scheme_interp_slice(), scheme_strathE2E(), stratify(), xyindex_to_nindex()


Jack-H-Laverick/nemomedusR documentation built on Dec. 12, 2022, 5:21 a.m.