GithubHelp home page GithubHelp logo

erdc / rapidpy Goto Github PK

View Code? Open in Web Editor NEW
21.0 22.0 26.0 142.34 MB

RAPIDpy is a python interface for RAPID that assists to prepare inputs, runs the RAPID program, and provides post-processing utilities.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
python hydrology

rapidpy's Introduction

RAPIDpy

Documentation: http://rapidpy.readthedocs.io/en/latest

RAPIDpy is a python interface for RAPID that assists to prepare inputs, runs the RAPID program, and provides post-processing utilities. More information about installation and the input parameters for RAPID can be found at http://rapid-hub.org.

The source code for RAPID is located at https://github.com/c-h-david/rapid/.

DOI

License (3-Clause BSD)

PyPI version

Anaconda-Server Badge

Build Status

Build status

Docs

Credit

How the Inflow and GIS tools work:

Snow, Alan D., Scott D. Christensen, Nathan R. Swain, E. James Nelson, Daniel P. Ames, Norman L. Jones, Deng Ding, Nawajish S. Noman, Cedric H. David, Florian Pappenberger, and Ervin Zsoter, 2016. A High-Resolution National-Scale Hydrologic Forecast System from a Global Ensemble Land Surface Model. Journal of the American Water Resources Association (JAWRA) 1-15, DOI: 10.1111/1752-1688.12434 https://onlinelibrary.wiley.com/doi/full/10.1111/1752-1688.12434

Snow, Alan Dee, "A New Global Forecasting Model to Produce High-Resolution Stream Forecasts" (2015). All Theses and Dissertations. Paper 5272. http://scholarsarchive.byu.edu/etd/5272

Publications using RAPID and RAPIDpy:

Tavakoly, A. A., A. D. Snow, C. H. David, M. L. Follum, D. R. Maidment, and Z.-L. Yang, (2016) "Continental-Scale River Flow Modeling of the Mississippi River Basin Using High-Resolution NHDPlus Dataset", Journal of the American Water Resources Association (JAWRA) 1-22. DOI: 10.1111/1752-1688.12456

Datasets produced using RAPID and RAPIDpy:

Ahmad A Tavakoly. (2017). RAPID input files corresponding to the Mississippi River Basin using the NHDPlus v2 Dataset [Data set]. Zenodo. http://doi.org/10.5281/zenodo.322886 |Mississippi Dataset DOI|

.. |Mississippi Dataset DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.322886.svg :target: https://doi.org/10.5281/zenodo.322886

Other tools to prepare input for RAPID

rapidpy's People

Contributors

aat669 avatar hamiltch avatar lahatte avatar mfarthin avatar mgeheran avatar saralytle avatar sdc50 avatar snowman2 avatar spence97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rapidpy's Issues

.idea

.idea folder inadvertently added.

  1. Delete them
  2. Add to .gitignore

Conda Installation

I cannot install RAPIDpy using conda. Here is what I'm getting:

screen shot 2017-08-10 at 12 10 49 pm

I'm using a 32bit machine and makes me wonder if RAPIDpy is only available in conda for 64bit.

Change installation instructions to ensure that mpiexec is installed

I got the following error:

File "/usr/local/lib/python2.7/dist-packages/RAPIDpy/rapid.py", line 375, in run
stdout=PIPE, stderr=PIPE, shell=False)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Write failed: Broken pipe

After some digging in I realized that on our compute blades we didn't have mpiexec installed.

I installed mpiexec by running: apt-get install openmpi-bin

Generate Seasonal Average file

As suggested by @sdc50, a smaller file to have on the compute server would be the seasonal initialization file with 365 days of seasonal averages from 35 years of historical data.

Leap year issues with CMIP5 data

When ending a time period on a leap year, an index error occurs. For example, doing RAPIDpy for 1971-1972 crashes, because 1972 is a leap year. But if you do RAPIDpy for 1971-1973, it works fine.

Also, on some installations (problem on my Linux desktop, but not on the HPC install), generating the m3 file for a multi-year time period has an error related to leap years. A problem in the m3 file data occurs every four years, and the number of days is only 365 times the number of years, instead of some years having 366 days.

Runoff data from ISBA-SURFEX model

We use a ISBA-SURFEX model with grid 4/4 km. We want to use the output in grid for runoff for input in RAPID. What should be the file structure to use it in RAPIDpy?

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.