- Badge link to data + code archive will become live following manuscript acceptance
This is the code repository associated with the manuscript:
Huggins et al. (2025). The puzzling yet tractable diversity of global groundwater sustainability challenges, currently submitted for peer review.
This repository includes all scripts necessary to preprocess input data, reproduce the problemscape typology, develop the sustainability puzzles, and evaluate their landscape metrics. Some scripts have been executed on clusters provided by the Digital Research Alliance of Canada and will not be fully executable on local machines.
Scripts folder sub-structure:
on_button.R: Calls thehere()function and sources scripts in the\00-setupand\0-functionsfolders.0-functions: Contains custom functions with explanatory names.00-setup: Loads required packages, sets package options, and configures plotting themes.1-preprocessing:- Contains preprocessing scripts to harmonize data to a 5-arcminute resolution.
2-analysis/1-SOM:- Contains all scripts related to self-organizing maps (SOM) derivation of global groundwater problemscapes.
2-analysis:- Includes a script that calculates landscape metrics of groundwaterscapes within aquifers.
Additional scripts, such as for plotting, can be made available upon request.
For any questions about this repository, please contact:
Xander Huggins : xander.huggins@ubc.ca
