Giter Site home page Giter Site logo

hyd-wrfhydro-exceedance-calculator's Introduction

Exceedance calculator

Calculate exceedance and warning level from discharge values. Created for implementation as part of ClimaCell WRF-hydro workflow

Usage:

from main import exceedance_calculator
exceedance_filename = "path/to/CSV/file"
warning_levels = exceedance_calculator(exceedances_filename=exceedances_filename, discharges=discharges_series) 

Test:

python -m pytest

Exceedances file structure:

  • CSV file, one header line.
  • One line per station
  • Stations ID column's name must be "stn_id".
  • One column per exceedance probability value.
  • Exceedance columns names must have pattern: ^[0-9]*_percent
  • Exceedance columns values must be numeric.
  • example:
stn_id 1_percent 2_percent 5_percent 10_percent 20_percent 50_percent
61000 320 120 60 22 16 10
60190 29.52564 350 125 78 31 21.5

probability --> warning level mapping:

Probability of Exceedance Flood Index
No flow 0
>50% (every year) 1
50-20% (every 1-5 years) 2
20-10% (every 5-10 years) 3
10-5% (every 10-20 years) 4
5-2% (every 20-50 years) 5
<2% (over 50 years) 6

hyd-wrfhydro-exceedance-calculator's People

Contributors

logankarsten avatar pazdror avatar

Watchers

 avatar  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.