Code Monkey home page Code Monkey logo

linearresbmi's Introduction

linearresBMI

Description: This linear reservoir model includes an implementation of the Basic Model Interface (BMI). It's meant for demonstration purposes, but feel free to use it however you like. I'd recommend it mostly for hydrologic modeling, but you do you.

BMI is developed by the CSDMS group at CU Boulder. Much of the BMI code here is from their heat example.

Dependencies

This is a simple bit of Python code developed with Python 3.9. The linearresBMI module requires:

The example also requires:

Installation

First install the BMI Python bindings using the CSDMS instructions. Next, build the model by going to the main level of the linearresBMI directory and running:

pip install -e .

Usage

This model comes with an example Jupyter Notebook so you can see how the BMI functions work to control model execution and the handling of data.

examples/run-model-from-bmi.ipynb

To note, the example comes with its own synthetic forcing data, but you can create your own using the R code in tools.

Known issues

This is but a simple model that makes several assumptions. They are:

  • All incoming precipitation (or land surface water flux) is liquid
  • Discharge is the only way to leave the reservoir (i.e., there is no evapotranspiration)
  • The model is configured for a daily timestep and there is no explicit handling of POSIX-formatted datetimes

Reporting issues, getting help

If you see any bugs, errors, etc., please use this repo's Issue Tracker. You can also make any requests for help there.

Open source licensing info

LICENSE


Credits and references

  1. BMI from CSDMS
  2. The BMI Python heat example
  3. Wikipedia's entry on runoff models (yes, that Wikipedia)
    • The linear reservoir equation cites this document: J.W. de Zeeuw, 1973. Hydrograph analysis for areas with mainly groundwater runoff. In: Drainage Principle and Applications, Vol. II, Chapter 16, Theories of field drainage and watershed runoff. p 321-358. Publication 16, International Institute for Land Reclamation and Improvement (ILRI), Wageningen, The Netherlands. (good luck finding it!)
  4. The Next Generation Water Prediction Capability project at the NOAA-NWS Office of Water Prediction

linearresbmi's People

Contributors

snowhydrology avatar

Stargazers

Jonathan Frame avatar

Watchers

 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.