This repository contains code that was used to run the RHESSys ecohydrological model and complete a Morris global sensitivity analysis of model parameters, Bayesian DREAMzs calibration of model parameters, and multi-objective spatial optimization of Green Infrastructure that is robust to the uncertainty in model parameter values. The repository consists of the following directories, each with their own README file:
Contains code for a Morris sensitivity analysis of RHESSys model parameters.
This code was used for the manuscript:
Smith, J.D., L. Lin, J.D. Quinn, and L.E. Band. Guidance on evaluating parametric model uncertainty at decision-relevant scales. Hydrology and Earth System Sciences. https://doi.org/10.5194/hess-26-2519-2022.
Credit: The WRTDS_ModifiedFunctions.R were originally from USGS functions in the EGRET package. They are modified according to GitHub issue #251
Contains code for the generalized normal distribution (skew exponential power) used for the sensitiivty analysis, calibration, and optimization studies.
Credit: The likelihood.py script contains a modified version of the generalizedLikelihoodFunction function found within the spotpy repository’s likelihoods.py script from March 7th, 2018.
• Julianne Quinn modified this function to allow for unequally spaced samples, as is the case for water quality data in this study. Measurement error sections were commented out. The bias computation was corrected according to closed GitHub issue #245. The returned likelihood was negated for minimization.
• Jared Smith corrected the computation of residual errors according to closed GitHub issue #257, and added options to remove seasonality in residuals.
• Zachary Brodeur provided the generalized likelihood equations in R.
Contains code for running and interpreting DREAMzs Bayesian calibration of a RHESSys hydrological model using the BayesianTools R package. The calibrated model is used in the robust optimization study.
Contains code to obtain the maximum possible amount of green infrastructure that could be added to each patch (grid cell) within a RHESSys model. This is used to inform the decision variables and constraints in the optimization study.
Contains code for the multi-objective robust optimization of green infrastructure using the Borg multi-objective evolutionary algorithm.