Skip to content
/ cambio Public

Display the results of a toy model of the climate (Django)

Notifications You must be signed in to change notification settings

prowe12/cambio

Repository files navigation

CAMBIO

Run a simple climate model to see how our CO2 emissions affect the atmosphere, land, and oceans.

Description

CAMBIO is a simple climate model that demonstrates how key aspects of the Earth system respond to anthropogenic CO2 emissions. For given input scenarios, CAMBIO creates plots with time of:

  1. CO2 fluxes between humans and the atmosphere and between atmosphere and ocean and atmosphere and land.
  2. The amount of CO2 in the atmosphere and ocean.
  3. Earth's albedo - that is, how much sunlight is reflected of Earth's surface. This decreases when ice melts, allowing the planet to absorb more sunlight and heat further.
  4. The pH of the oceans, which is crucial for coral reefs and shellfish.

CAMBIO has a variety of inputs that feed into the climate model. Some of these are tied to human choices, such as the year human CO2 emissions peak, while others represent guesses at how the climate will respond, such as the strength of the albedo feedback.

CAMBIO was originally developed for an undergraduate class on modeling Earth's climate. In the class, students develop the module piece by piece. Finally, when it is complete, they use it to study a particular aspect of the climate system. The CAMBIO web app allows anyone to run experiments with CAMBIO, to see how varying inputs lead to different responses.

Authors

Credits

We are grateful to Alex Ledger (https://github.com/aled1027) for all his support and advice. A big thank you to Ben Gamble for the idea of putting CAMBIO online, to Charles Dahl for developing the original design and CSS, and to both of them for their work on this project's predecessor, Benchly.

Various tutorials were extremely helpful in developing this project, including the Django documentation (https://docs.djangoproject.com/), as well as these excellent tutorials: https://fly.io/blog/deploying-django-to-production/#deploying-to-fly-io and https://davi.sh/blog/2022/10/django-with-flyio/.

License

Copyright (C) 2023 Penny Rowe, Daniel Neshyba-Rowe, and Steven Neshyba.

Acknowledge use by including the statement "By Penny Rowe, Daniel Neshyba-Rowe, and Steven Neshyba - Own work, GNU GPLv3, https://github.com/prowe12/cambio.

Testing

Run the tests using the following command at the command prompt:
$ poetry run python manage.py test

About

Display the results of a toy model of the climate (Django)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •