EGU21-8557
https://doi.org/10.5194/egusphere-egu21-8557
EGU General Assembly 2021
© Author(s) 2021. This work is distributed under
the Creative Commons Attribution 4.0 License.

pyBL: An open source Python package for stochastic high-resolution rainfall modelling based upon a Bartlett Lewis Rectangular Pulse model

Li-Pen Wang1,2, Ting-Yu Dai1, Yun-Ting He1, Ching-Chun Chou1, and Christian Onof2
Li-Pen Wang et al.
  • 1National Taiwan University, Civil Engineering, Taipei, Taiwan (lpwang@ntu.edu.tw)
  • 2Imperial College London, Civil and Environmental Engineering, London, UK

Stochastic rainfall modelling is an increasingly popular technique used by the water and weather risk industries. It can be used to synthesise sufficiently long rainfall time series to support hydrological applications (such as sewer system design) or weather-related risk analysis (such as excess rainfall insurance product design). The Bartlett-Lewis (BL) rectangular pulse model is a type of stochastic model that represents rainfall using a Poisson cluster point process. It is calibrated with standard statistical properties of rainfall data (e.g. mean, coefficient of variation, skewness and auto-correlation and so on), but it can well preserve extreme statistics of rainfall at multiple timescales simultaneously. In addition, it is found to be less sensitive to observational data length than the existing rainfall frequency analysis methods based upon, for example, annual maxima time series, so it provides an alternative to rainfall extremes analysis when long rainfall datasets are not available. 

In this work, we would like to introduce an open source Python package for a BL model: pyBL, implemented based upon the state-of-the-art BL model developed in Onof and Wang (2020). In the pyBL package, the BL model is separated into three main modules. These are statistical properties calculation, BL model calibration and model sampling (i.e. simulation) modules. The statistical properties calculation module processes the input rainfall data and calculates its standard statistical properties at given timescales. The BL model calibration module conducts the model fitting based upon the re-derived BL equations given in Onof and Wang (2020). A numerical solver, based upon Dual Annealing optimization and Nelder-Mead local minimization techniques, is implemented to ensure the efficiency as well as to prevent from being drawn to local optima during the solving process. Finally, one can use the sampling module to generate stochastically rainfall time series at a given timescale and for any required data length, based upon a calibrated BL model.

The design of the pyBL is highly modularized, and the standard CSV data format is used for file exchange between modules. Users could easily incorporate given modules into their existing applications. In addition, a team, consisting of researchers from National Taiwan University and Imperial College London, will consistently implement the new breakthroughs in BL model to the package, so users will have access to the latest developments. The package is now undergoing the final quality check and will be available on Github (https://github.com/NTU-CompHydroMet-Lab/pyBL) in due course. 

How to cite: Wang, L.-P., Dai, T.-Y., He, Y.-T., Chou, C.-C., and Onof, C.: pyBL: An open source Python package for stochastic high-resolution rainfall modelling based upon a Bartlett Lewis Rectangular Pulse model, EGU General Assembly 2021, online, 19–30 Apr 2021, EGU21-8557, https://doi.org/10.5194/egusphere-egu21-8557, 2021.

Displays

Display file