stratify: Summarise Across Depths in a NEMO-MEDUSA Array

View source: R/deprecated.R

stratifyR Documentation

Summarise Across Depths in a NEMO-MEDUSA Array

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

stratify(data, depth, weights)

Arguments

data

An array containing estimates of a variable.

depth

A TRUE FALSE vector indicating the depth layers to be extracted.

weights

An array containing water thicknesses.

Value

A matrix containing the weighted averages of the variable across the depth window of interest.

See Also

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


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