Create a series of transects along the boundaries of model compartments
boundaries.RdThis function takes the domain polygon file and returns transects for use when sampling fluxes across boundaries between model compartments.
Arguments
- domain
An SF object containing polygons for the geographic extent of the inshore and offshore zones for the project.
- crs
The coordinate reference system for the project. This should be specified in the project region file.
Value
The function returns a dataframe containg SF boundary transects around the model domain, a length column is included for weighting transects in future averaging functions.
Details
The function exposes the geometry for the domain polygons to the `to_segments` function. `to_segments` converts the geometry into a collection of transects and passes them back to this function. A unique id is added for each transect along with the length of the transect for use when calculating weighted averages.
See also
Other Boundary sampling functions:
characterise_flows(),
to_segments()