Skip to main content

An Earth Sciences Box Modeling Toolkit

Project description

Table of Contents

  1. ESBMTK - An Earth-sciences box modeling toolkit
  2. News
  3. Contributing
  4. Installation
  5. Documentation
  6. License

ESBMTK - An Earth-sciences box modeling toolkit

ESBMTK is python library which aims to simplify typical box modeling projects the in Earth-Sciences. I started this project to teach myself python and explore object oriented programming. The code became however functional enough that the focus of this project has shifted to make box modeling more approachable for classroom teaching. So performance and scalability are not great. Specifically, the solved is a simple forward Euler scheme, so stiff problems are not handled gracefully.

At present, it will calculate masses/concentrations in reservoirs and fluxes including isotope ratios. It provides a variety of classes which allow the creation and manipulation of input signals, and the generation of graphical results. There is however no support for chemical reactions (including equilibrium reactions).

News

  • Oct. 27th, added documentation on how to integrate user written process classes, added a class which allows for concentration dependent flux. Updated the documentation, added examples
  • Oct. 25th, Initial release on github.

Contributing

Don't be shy. Contributing is as easy as finding bugs by using the code, or maybe you want to add a new process code? If you have plenty of time to spare, ESMBTK could use a solver for stiff problems, or a graphical interface ;-)

Installation

ESBMTK relies on the following python versions and libraries

  • python > 3.5
  • matplotlib
  • numpy
  • pandas
  • logging
  • nptyping
  • numbers

please install the above with pip or conda etc.

At present, there is no ready made installation routine. Rather download the esbmtk.py library into your local working library using one of the following commands

Documentation

See the documentation folder, specifically the quickstart guide.

At present, I also provide the following example cases (as py-files and in jupyter notebook format)

  • A trivial carbon cycle model which shows how to set up the model, and read an external csv file to force the model
  • The same model as be before but now to demonstrate how to add pyramid shaped signal, and how to use the rate constant process to adjust concentration dependent flux ratesconcentration dependent flux rates.

Last but not least, I added a short guide how to add your own process classes to the ESBMTK

License

ESBMTK: A general purpose Earth Science box model toolkit Copyright (C), 2020 Ulrich G. Wortmann

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esbmtk-0.1.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

esbmtk-0.1-py3-none-any.whl (69.6 kB view details)

Uploaded Python 3

File details

Details for the file esbmtk-0.1.tar.gz.

File metadata

  • Download URL: esbmtk-0.1.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for esbmtk-0.1.tar.gz
Algorithm Hash digest
SHA256 1b8143910ce780dbe9bcc0536936e33c0f3219f928b5b07609fc3fd88d089f49
MD5 2a5acf0515f1fdb295b7e3b5b000306f
BLAKE2b-256 2cd93b1822c6f8403c1a08e9a675e34df027fbd6d2ac4f07970cef5ebf4ebe85

See more details on using hashes here.

File details

Details for the file esbmtk-0.1-py3-none-any.whl.

File metadata

  • Download URL: esbmtk-0.1-py3-none-any.whl
  • Upload date:
  • Size: 69.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for esbmtk-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c0346e60c2500841c92a8f7009eaafeb0daa953f9932dd38f9d4c2e485b525
MD5 69886998b6977de362b954502ef69522
BLAKE2b-256 d73b03c89239e87933a3bdc7a925bb02872be08b9933e209ca2b72000df56c2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page