View source: R/Boundary functions.R
boundaries | R Documentation |
This function takes the domain polygon file and returns transects for use when sampling fluxes across boundaries between model compartments.
boundaries(domain, crs)
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. |
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.
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.
Other Boundary sampling functions:
characterise_flows()
,
to_segments()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.