Distance to Natural forestsSource:
dist2nf computes the distance between the target pine plantation and
all surroundings natural forests patches.
The value of "Natural Forests" landscape class within the raster (default value = 2).
This auxiliary function calculates the distance for each pixel of the target pine plantation to the edges of all surrounding natural forest patches. For each pixel, the final value considered is the minimum of all distances from that pixel to the edges of natural forests.
Antonio J Pérez-Luque (email@example.com)