Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NCAR/wrf_hydro_py
Python API for the WRF-Hydro model
https://github.com/NCAR/wrf_hydro_py
Last synced: 3 months ago
JSON representation
Python API for the WRF-Hydro model
- Host: GitHub
- URL: https://github.com/NCAR/wrf_hydro_py
- Owner: NCAR
- Created: 2018-03-12T14:41:50.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T21:20:40.000Z (9 months ago)
- Last Synced: 2024-06-11T16:47:03.249Z (5 months ago)
- Language: Python
- Size: 11.7 MB
- Stars: 54
- Watchers: 10
- Forks: 43
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- open-sustainable-technology - wrfhydropy - Provides an end-to-end python interface to support reproducible research and construction of workflows involving the WRF-Hydro model. (Hydrosphere / Ocean Models)
README
# WRF-HYDRO-PY
[![Build Status](https://github.com/NCAR/wrf_hydro_py/actions/workflows/ci.yaml/badge.svg)](https://github.com/NCAR/wrf_hydro_py/blob/main/.github/workflows/ci.yaml)
[![Coverage Status](https://coveralls.io/repos/github/NCAR/wrf_hydro_py/badge.svg?branch=master&service=github)](https://coveralls.io/github/NCAR/wrf_hydro_py?branch=master)
[![PyPI](https://img.shields.io/pypi/v/wrfhydropy.svg)](https://pypi.python.org/pypi/wrfhydropy)
[![GitHub release](https://img.shields.io/github/release/NCAR/wrf_hydro_py.svg)](https://github.com/NCAR/wrf_hydro_py/releases/latest)
[![Documentation Status](https://readthedocs.org/projects/wrfhydropy/badge/?version=latest)](https://wrfhydropy.readthedocs.io/en/latest/?badge=latest)![](https://ral.ucar.edu/sites/default/files/public/wrf_hydro_symbol_logo_2017_09_150pxby63px.png)
**IMPORTANT:** This package is in the very early stages of development and the package API may change at any time. It is not recommended that this package be used for significant work until version 0.1
## Description
*wrfhydropy* provides an end-to-end python interface to support reproducible research and construction of workflows involving the
WRF-Hydro model. See the docs for an extended description of [what-and-why wrfhydropy](https://wrfhydropy.readthedocs.io/en/latest/what-and-why.html).## Documentation
Documentation is available on-line through `help()` and via [readthedocs](https://wrfhydropy.readthedocs.io/en/latest/index.html). Documentation is a work in progress, please feel free to help improve the documentation or to make an issue when the docs are inaccurate!## Contributing standards
Failure to adhere to contributing standards may result in your Pull Request being rejected.### pep8speaks
All pull requests will be linted automatically by pep8speaks and reported as a comment into the pull request. The pep8speaks configuration is specified in .pep8speaks.yml. All pull requests must satisfy pep8speaks.
Local linting can be performed after a `pip install` of [pycodestyle](https://github.com/PyCQA/pycodestyle). Pep8speaks linting reports also update with updated pull requests.### Additional Style Guidelines
* Max line length: 100 chars.
* docstrings: [Google style](http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
* All other guidance follows [Google style guide](https://google.github.io/styleguide/pyguide.html)
* General advice: [Hitchhiker's guide to code style](https://goo.gl/hqbW4r)### Testing
All pull requests must pass automated testing (via TravisCI). Testing can be performed locally by running `pytest` in the `wrfhydropy/tests` directory. Currently, this testing relies on the [`nccp`](https://gitlab.com/remikz/nccmp) binary for comparing netcdf files. A docker container can be supplied for testing on request (and documentation will subsequently be placed here).### Coverage
Testing concludes by submitting a request to [coveralls](https://coveralls.io/). This will automatically report changes of code coverage by the testing. Coverage should be maximized with every pull request. That is all new functions or classes must be accompanied by comprehensive additional unit/integration tests in the `wrf_hydro_py/wrfhydropy/tests` directory. Running coverage locally can be achieved by `pip` installing [`coverage`](https://pypi.org/project/coverage/) and [`pytest-cov`](https://pypi.org/project/pytest-cov/) following a process similar to the following:
```
cd wrfhydropy/tests/
pytest --cov=wrfhydropy
coverage html -d coverage_html
chrome coverage_html/index.html # or your browser of choice
```