==== Accounting for spatial interactions ==== Spatial interactions, such as neighbourhood effects, are often important in socio-ecological systems. In gBay, we can account for spatial interactions using the **Intermediate processing** module. Here, we can upload **python scripts** that process available data on the nodes (either input data or outputs of the previous time step) and modify evidences according to some rules. Some examples are provided, including: ***Changing evidences** over time (e.g. modifying the evidence on a node describing agricultural policy, which changes between different time steps). *Implementing **boundary conditions** (e.g. limiting the number of pixels that can change from “forest” to “agriculture” under a specific land use change scenario). *Calculating **neighbourhood** values (e.g. calculating the percentage of forest cover in neighbouring pixels within a specified distance). To use the intermediate processing module, modify one of the available scripts with your parameters (such as neighbourhood distance) or upload your own. In addition, specify which nodes’ data should be used for the calculation by hovering over the node and selecting the option “Python”. {{ :python.png?200|}} [[Example scripts]] [[Intermediate processing technical information]]