GEO BON logo

Stepwise Site Optimization

Authors: Francis van Oordt, Samara Manzin

Introduction

Biodiversity monitoring programmes may need to expand their sampling network or revisit sites that are no longer regularly monitored. Choosing additional sites can help improve coverage of environmental conditions and geographic areas that are poorly represented by the current network.

This pipeline uses a stepwise p-median optimization procedure implemented in the SURDES package to select additional sites from a user-provided candidate list. Selection considers environmental differences and geodesic distances between site coordinates in metres, with the aim of complementing sites already included in the monitoring network.

Uses

Use this pipeline to prioritize demand points when expanding or rotating a monitoring network. Demand points may include historical sampling locations or proposed new sites.

The input list must identify two groups:

Together, these groups define the set of sites considered in the analysis. The pipeline extracts environmental values at their locations, calculates distance matrices, and selects additional sites through successive optimization steps.

The results include site-selection values, a map, and a curve showing how the remaining uncovered variability changes as sites are added. These outputs support decisions about which demand points to include and how many additional sites to sample.

Pipeline limitations

Before you start

Prepare a CSV containing one row per site and the following columns:

Use numeric values without missing coordinates or classifications. Include at least one current site and one demand point. Extra columns may contain site identifiers or other attributes; they do not enter the distance calculations.

Input coordinates must always be WGS84 longitude and latitude, regardless of the CRS selected in the location chooser. Sites are reprojected internally for extracting environmental data; geographic distances are calculated directly from WGS84 coordinates.

Place the file in your BON in a Box userdata directory and enter its container path in Sampling locations, for example /userdata/sampling_sites.csv.

The environmental variables, raster resolution, and supplied demand points determine the differences considered by the optimization. Choose variables relevant to the monitoring objectives and ensure their coverage includes all supplied sites. Set the number of additional sites to a value no greater than the number of rows with vini = 0.

Running the pipeline

Pipeline inputs

Pipeline steps

1. Retrieve environmental data

Load the study-area polygon and selected environmental rasters.

2. Calculate site distances

Standardize the environmental rasters and calculate Euclidean distances between the values extracted at sites. Separately, calculate ellipsoidal geodesic distances in metres from the WGS84 coordinates. Multiply corresponding entries to create the joint distance matrix. Site classification (vini) is used by the optimizer, not in either distance calculation.

With this multiplication, a zero distance in either component gives a zero joint distance. Changing the raster CRS or resolution can affect environmental values; it does not change the geographic distance method.

3. Select additional sites

Scale the joint distance matrix by its maximum value so all entries are between 0 and 1, preserving their relative differences. This accommodates the distance cap used internally by SURDES. Run the stepwise optimization using the current-site classifications and requested number of iterations. If all demand points are requested, the sole remaining point is added directly at the final step to avoid a single-candidate limitation in SURDES.

4. Inspect the results

Review the selection values, map, and remaining uncovered-variability curve.

Pipeline outputs

References