scheme_strathE2E: Return a slabR Scheme for a StrathE2E Summary

View source: R/Schemes.R

scheme_strathE2ER Documentation

Return a slabR Scheme for a StrathE2E Summary

Description

Use this scheme to create a depth-averaged shallow and deep grid for use with StrathE2E.

Usage

scheme_strathE2E(space, bathymetry, shallow, deep, sf = NULL)

Arguments

space

a list of latitudes, longitudes, and depths for NEMO-MEDUSA model output, as returned by 'get_spatial()'

bathymetry

a dataframe containg the NEMO_MEDUSA bathymetry.

shallow

a vector of a min and max depth (m) for the shallow layer to be averaged over.

deep

a vector of a min and max depth (m) for the deep layer to be averaged over.

sf

an optional sf polygon to define the horizontal area of interest.

Details

The function takes the spatial information for a whole NEMO-MEDUSA file and determines how to get a depth-averaged shallow and deep grid. The function uses 'calculate_depth_share()' per pixel to determine how much of the water column is represented by each slice, within either the shallow or deep grid. The depth limits of each layer and the bathymetry are used when calculating the weights for each point. If an sf polygon is provided, only points which fall within the polygon will be interpolated.

Value

A dataframe containing a slabR scheme.

See Also

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


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