← Back to all sparks
H

HydroPortailStats

INFRA · APIS
Velocity0.0

HydroPortail Statistical Functions

France's national flood statistics, ported out of Fortran and into R.

hydrologyflood-frequencybayesian-statisticsextreme-valuesopen-datar-package
Current state
HydroPortailStats exposes the statistical machinery behind the French HydroPortail — distribution fitting, quantile curves and their uncertainties for hydrological series. The 2025 release re-implements the HBay Fortran executable in R, adding Bayesian estimation from historical flood records with censored and interval-valued data and systematic measurement error, plus a triangular distribution and truncated random generation.
Where it's heading
The package started as a straight extraction of the portal's existing functions and is now absorbing the surrounding legacy toolchain: HBay was a separate compiled program with its own config files, and this release brings both the method and its configuration format inside R. Releases are sparse — three in two years, with an eighteen-month gap before the latest — and the intervening one was CRAN paperwork.
Prediction
The HBay import came with a configuration-file reader for continuity with the old executable, which suggests further legacy hydrological tooling could follow the same path; the entries name no specific next target.

Recent moves

  1. 1y ago

    Historical flood records enter the estimator via an HBay port

    ⚡ SPARK

    Hydro3_HBay() re-implements the Fortran HBay executable in R, letting flood frequency estimation use historical records with censored or interval data and systematic errors. Bundled with it are a config importer for files written for the old executable, a triangular distribution and a truncated random generator — the release that turns this package from a portal extract into the portal's toolchain.

    View source ↗
  2. 3y ago

    CRAN submission renames the return-period arguments

    GetQfromT() takes RP instead of T and GetTfromQ() returns a list named accordingly, avoiding T as a variable name — a small but breaking interface change made during CRAN review. The rest is packaging hygiene: TRUE/FALSE everywhere, graphics parameters reset after use, a NEWS file added.

    View source ↗
  3. 3y ago

    First release: the HydroPortail statistical functions in R

    Publishes the distribution estimation, quantile curve and uncertainty functions used by the French HydroPortail as an installable package, documented in both English and French. It makes a national hydrological service's methods inspectable outside the portal itself.

    View source ↗