Interpolate vertical water movements to the boundary depth between shallow and deep compartments
to_segments.Rd
This function reads in a 3 dimensional array of water movements, and uses the `rcdo` package to interpolate values to a plane at the boundary depth between shallow and deep compartments.
Arguments
- line
The geographic perimeter of the inshore and offshore zone as SF object.
- crs
The coordinate reference system for the project. This is inherited from `boundaries` and should be specified in the project region file.
- Path
The path to a netcdf file containing target data, inherited from `interp_month`.
- File
The name of a netcdf file containing target data, inherited from `interp_month`.
- Points
An SF object containing the grid points which fall within the domain polygons, inherited from `interp_month`.
- Boundary
The boundary depth between shallow and deep compartments, defaults to 60 m for MiMeMo.
- data
A list of paths to netcdf files which share the same month.
- grid_points
An SF object containing the grid points which fall within the domain polygons.
Value
A data frame containing vertical eddy diffusivity and vertical velocity at the boundary depth between shallow and deep compartments, for a single day as a spatial plane.
The function returns a dataframe of points averaged within a month and interpolated to the boundary depth.
The function returns a list of individual SF lines connecting each corner of the perimeters of model compartments.
Details
The function uses `rcdo::nc_remap` to interpolate vertical eddy diffusivity and vertical water velocities at the boundary depth between the shallow and deep model compartments. Points which fall outside the geographic extent of model compartments are dropped. The retained points are passed back to `interp_month` for further averaging as a dataframe.
See also
Other Boundary sampling functions:
boundaries()
,
characterise_flows()