https://github.com/nicholaswogan/clima
A climate model of planetary atmospheres
https://github.com/nicholaswogan/clima
astrobiology atmosphere climate-model cython earth-science exoplanets fortran python
Last synced: 4 months ago
JSON representation
A climate model of planetary atmospheres
- Host: GitHub
- URL: https://github.com/nicholaswogan/clima
- Owner: Nicholaswogan
- License: gpl-3.0
- Created: 2022-03-01T01:05:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-02-05T00:23:42.000Z (4 months ago)
- Last Synced: 2026-02-05T11:30:04.349Z (4 months ago)
- Topics: astrobiology, atmosphere, climate-model, cython, earth-science, exoplanets, fortran, python
- Language: Fortran
- Homepage:
- Size: 15.5 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clima
`Clima` is a radiative transfer code and a climate model.
## Installation
### Conda
Clima is a module of the `photochem` package, which can be installed via conda:
`conda install -c conda-forge photochem`
You can then import `clima`.
```python
from photochem import clima
```
### From source
You need a Fortran compiler (`gfortran>=9.30`, [install instructions here](https://fortran-lang.org/learn/os_setup/install_gfortran)) and C compiler (e.g. install with `conda install -c conda-forge clang`)
Create a `conda` environment with all dependencies
```sh
conda create -n clima -c conda-forge python numpy scipy pyyaml scikit-build cython h5py
```
Clone this Gitub repository:
```sh
git clone --depth=1 --recursive https://github.com/Nicholaswogan/clima.git
```
Navigate to the root directory with a terminal, activate your new `conda` environment, then install with pip:
```sh
conda activate clima
python -m pip install --no-deps --no-build-isolation . -v
# or `python setup.py install`, if the above command doesn't work for some reason
```
If your installation fails, and it is not clear why, please raise an issue.
## Funding, acknowledgements and publications
Funding for the development of Clima comes from
- [The Virtual Planetary Laboratory](https://depts.washington.edu/naivpl/content/welcome-virtual-planetary-laboratory)
- [Simons Collaboration on the Origins of Life](https://www.simonsfoundation.org/life-sciences/origins-of-life/simons-collaboration-on-the-origins-of-life/)
- [AEThER](https://planets.carnegiescience.edu/)
This model was build in collaboration with
- Josh Krissansen-Totton
- Maggie Thompson
- David Catling
- Kevin Zahnle
- Eric Wolf
- Sandra Bastelberger
- Shawn Domagal-Goldman
Publications that use clima
- [DOI: 10.3847/PSJ/aced83](https://doi.org/10.3847/PSJ/aced83)