GithubHelp home page GithubHelp logo

michaelaleung / photochempy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicholaswogan/photochempy

0.0 1.0 0.0 22.35 MB

Photochemical model of rocky planet's atmospheres.

License: MIT License

Fortran 97.14% Python 2.86%

photochempy's Introduction

PhotochemPy Memcheck Build Status

PhotochemPy is a photochemical model of planet's atmospheres. Given inputs, like the stellar UV flux, the atmospheric temperature structure, etc., this code will find the steady-state chemical composition of an atmosphere, or evolve atmospheres through time.

PhotochemPy is a Python wrapper to Fortran source code. This makes the code very speedy, but also user-friendly.

Installation

You need a Fortran compiler (gfortran>=9.30, install instructions here) and C compiler (e.g. install with conda install -c conda-forge clang). Also you must use MacOS or Linux OS. Windows does not work.

Create a conda environment with all dependencies

conda create -n photochempy -c conda-forge python numpy=1.21 scipy scikit-build

Clone or download the github repository. Navigate to the root directory with a terminal, activate your new conda environment, then install with setup.py:

conda activate photochempy
python setup.py install

Fortran library only: If you prefer to use the code exclusively in Fortran, that is OK too. You can build libphotochem with CMake. Download or clone this respository, then from the root directory of the repository run

mkdir build
cd build
cmake ..
cmake --build . -j

Examples/Tutorial

See the examples directory. Also check out this tutorial

History

PhotochemPy is a distant fork of the Atmos photochemical model, originally developed by Jim Kasting and Kevin Zahnle and further developed by many of their students and colleges.

Contact + Publications

If you have questions email me: [email protected]

Also, if you plan on using PhotochemPy for a publication please email me before you submit anything to a journal, just so we can confirm your planned application of the model is reasonable.

photochempy's People

Contributors

nicholaswogan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.