Calculate the Weights for Linear Interpolation Between Two Depths
calculate_proximity_weight.Rd
This function calculates the distance between a shallower and deeper depth to a target depth. These values are then swapped so they can be used in a weighted average to linearly interpolate to the target depth.
Arguments
- depths
A numeric vector of a shallower and deeper depth.
- target
An intermediate depth we would like to interpolate to.
See also
Other NEMO-MEDUSA spatial tools:
calculate_depth_share()
,
netcdf_scheme_helpers
,
scheme_column()
,
scheme_interp_slice()
,
scheme_strathE2E()
,
stratify()
,
voronoi_grid()
,
xyindex_to_nindex()