Measures the distance of each cell to the nearest MPA edge and to all MPA cells
Source:R/get_mpa_distances.R
get_distance_to_mpas.Rd
Measures the distance of each cell to the nearest MPA edge and to all MPA cells
Value
a dataframe with two columns added.
distance_to_mpa_edge
measures the distance from each patch to the nearest MPA edge in units of sqrt(patch_area), with negative values indicating areas inside an MPA
total_mpa_distance
measure to total distance to all MPA cells from each patch, in units of sqrt(patch_area)