scheme_interp_slice | R Documentation |
Use this scheme to interpolate a layer at a new depth from an array.
scheme_interp_slice(space, target_depth, sf = NULL)
space |
a list of latitudes, longitudes, and depths for NEMO-MEDUSA model output, as returned by 'get_spatial()' |
target_depth |
a depth (m) to interpolate a slice for. |
sf |
an optional sf polygon to define the horizontal area of interest. |
The function takes the spatial information for a whole NEMO-MEDUSA file and determines which slice is immediately above and below a target depth. These two slices are used to interpolate the new layer. The function calculates the weights needed to interpolate between the values using 'calculate_proximity_weight'. If an sf polygon is provided, only points which fall within the polygon will be interpolated.
A dataframe containing a slabR scheme.
Other NEMO-MEDUSA spatial tools:
calculate_depth_share()
,
calculate_proximity_weight()
,
netcdf_scheme_helpers
,
scheme_column()
,
scheme_strathE2E()
,
stratify()
,
voronoi_grid()
,
xyindex_to_nindex()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.