Skip to content

jskerker/SantaCruz_Integrated_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Santa Cruz Integrated Affordability Model: Repository for "Climate change exacerbates water affordability crisis"

Python implementation of a systems modeling framework using Pywr developed in:

  • Skerker, J.B., Klassert, C., Francois, B., Verma, A., Brown, C., and Fletcher, S.M., Climate change exacerbates water affordability crisis, Under Review. Code documentation by: Jennifer Skerker, Stanford University. Last updated: December 2025.

Notes: This repository includes all of the novel code developed for this work. Please see the PDF "Git Documentation & Organization" for more details.

File Organization:

  • data: This folder contains data developed for this work, including the Discrete/Continuous Choice (DCC) model coefficients and the risk-of-failure (ROF) tables developed for different reservoir storage levels.
  • model_assumptions_and_scenarios: This folder contains json files containing the relevant asssumptions for infrastructure planning and rate development.
  • models: This folder contains the parent models (json files) used in building the systems model.
  • scripts: This folder contains the Python code developed for this project, as well as Python files to develop paper figures.

Pywr Installation: To install Pywr, please follow the instructions at this link: https://pywr.github.io/pywr-docs/master/install.html. This code was run using PyCharm through Anaconda Navigator. In order to run this on a MacBook with an "Apple Silicon" chip (2022 and newer), you need to create an X86 environment in Anaconda Navigator for Pywr to work. Create the new environment using Python version 3.12 and install the dependencies necessary for Pywr using the following steps:

conda env create -f environment.yml
conda activate my_env

Installing Anaconda Navigator, PyCharm, and setting up the x86 environment should take 30-60 minutes.

About

This repository includes the publicly-available code for Skerker et al. (under review).

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors