An open API service indexing awesome lists of open source software.

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

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)