Return a slabR Scheme for a StrathE2E Summary
scheme_strathE2E.Rd
Use this scheme to create a depth-averaged shallow and deep grid for use with StrathE2E.
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.
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()