Disrespect Others, Respect the Climate? Applying Social Dynamics with Inequality to Forest Climate Models
This repository contains the source code for the simulations and plots in the ``Disrespect Others, Respect the Climate? Applying Social Dynamics with Inequality to Forest Climate Models'' manuscript. The preprint is available on arXiv.
- requirements.txt: list of python requirements
- Plotly_plot.ipynb: Jupyter notebook that generates static and interactive phase portraits (Figure 1)
- outcomesovertime.ipynb: Jupyter notebook that generates mitigation proportion trajectories (Figures 3, 5)
- heatmaps.ipynb: Jupyter notebook that generates mitigation proportion trajectories (Figures 2, 4, 6-8)
- dde_figs.py: Script that shows mitigation proportion trajectories for multiple parameter sets
- heterogenous_pop_.py: Script that shows a particular mitigation proportion trajectory
To run the simulations, create a virtual environment
python3 -m venv .venv
source .venv/bin/activateand install the dependencies
python3 -m pip install -r requirements.txtThe jupyter notebooks can be viewed by launching jupyter
jupyter notebookand selecting the appropriate .ipynb file
The scripts can be run using python directly:
python3 <script name>.py