Skip to main content

A simple diffusive landscape evolution model

Project description

flem

https://img.shields.io/pypi/v/flem.svg https://img.shields.io/travis/johnjarmitage/flem.svg Documentation Status https://mybinder.org/badge_logo.svg https://github.com/johnjarmitage/io-page/blob/master/static/images/flem.gif

A simple diffusive landscape evolution model

Installation

  • flem requires Python 3.7

  • flem requires fenics, gdal, and a bit more. Fenics is best installed using conda. Therefore before installing first get yourself Anaconda (the 3.7 version) or if you prefer it light, miniconda.

  • create a directory of your choice and create an environment.yml file containing the following:

name: flem
channels:
  - conda-forge
  - defaults
dependencies:
  # flem requires
  # need to be specific for mshr and fenics
  - fenics=2019.1.0=py37_1
  - mshr=2019.1.0=py37h7596e34_1000
  - gdal
  - peakutils
  - matplotlib
  - scipy
  - pip
  - pip:
    # flem requires
    - flem
    - elevation
prefix: /srv/conda
  • from the terminal run: conda env create -f environment.yml

  • check out this notebook for how to run flem.

  • or see run_models.py for a more clunky example.

What is flem?

This is a set of functions written in python to solve for sediment transport. At the base it solves the concentrative-diffusive equations described by Smith & Bretherton (1972) [1]. These are solved using a simple finite element scheme using the fenics library. Surface run-off is routed either from model node-to-node or cell-to-cell (see Armitage, 2019) [2].

The model can be started either with a initial condition of a uniform elevation with some noise added, or a SRTM 30m DEM defined by west, south, east, north coordinates.

[1] - https://doi.org/10.1029/WR008i006p01506

[2] - https://doi.org/10.5194/esurf-7-67-2019

List of things to do:

  1. Add the choice to change precipitation rates

  2. Add the choice for boundary conditions

History

0.1.0 (2019-05-21)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

flem-0.1.1.tar.gz (12.5 MB view details)

Uploaded Source

Built Distribution

flem-0.1.1-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flem-0.1.1.tar.gz.

File metadata

  • Download URL: flem-0.1.1.tar.gz
  • Upload date:
  • Size: 12.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for flem-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1ad84db8b69cc0431433002a522d559041fe90a1c21e51cab94c80c75b4c2193
MD5 cceaf3b0638b48eb0e77464598afe156
BLAKE2b-256 a16383d38ca9c7341e30046873f847e9eb7124c7e65fbe2d88277962bcdfc23a

See more details on using hashes here.

File details

Details for the file flem-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: flem-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for flem-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20a30a780e1cf4245ec01516d37bd0d02afe5151cb24a5b315e51a2b2ef2437d
MD5 c404dfe06f79f493878bef84692637f8
BLAKE2b-256 d8e649f8b24c112f9dd21088e467962d9ee4d7aa88e07d0911deace8fd45e61b

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