Forecasts · built on MRRpy

Flood forecasts, live every 30 minutes.

MRRpy is no longer only a research model. It now runs on its own as an experimental live flood forecast for the Roshi Khola in Kavre, Nepal. Every half hour it reads rain from two automatic weather stations, adds the rain forecasts of four weather models, routes the water 72 hours ahead, and publishes river-flow forecasts and 2-D flood maps to a public web page.

Live · three places · updated every 30 minutes
Live forecast · Roshi Khola, Kavre, Nepal

Roshi Khola flood forecast

The Roshi Khola drains the hills south-east of Kathmandu, past Panauti and Khopasi and along the BP Highway to the Sunkoshi. In late September 2024 it flooded Panauti and Roshi Rural Municipality and cut the highway. It is the first river the MRRpy forecast was built for.

A research test, not a flood warning. Official flood warnings in Nepal come from the Department of Hydrology and Meteorology (DHM). The modelled flows are not yet checked against measured river flow, and the warning levels on the page are placeholders for testing.

See it working

Recorded with a headless browser from the live site on 3 November 2026, a dry-season night in Nepal, so the rivers are low and the flood maps nearly empty (Figure 1). The orange ring marks each click.

sauravbhattarai19.github.io/Roshi-ForecastOpen live
Step 1 of 8 · One site, three places

Figure 1. The live Roshi Khola forecast, 3 November 2026: front page; forecast points; 2-D flood maps; rain stations and river gauge.

Three places

Every 30 minutes

  • Measured rain. Two automatic weather stations report every 10 minutes through RTS, used with the alertnepal team's permission. A station silent for an hour counts as missing, and the forecast says so.
  • Forecast rain. ECMWF, GFS, and ICON through Open-Meteo, the alertnepal hourly forecast, and a "no more rain" version. Each is its own run, so the spread between them is part of the forecast.
  • The model. MRRpy on a 90 m grid: Green–Ampt infiltration with impervious land and implicit diffusive-wave routing. Each update carries on from the last saved state instead of starting dry.
  • Flood maps. The main forecast (ECMWF) drives a 2-D flood simulation on 30 m terrain for each town, and for the whole basin in overlapping blocks run side by side.
  • Publishing. The page is rebuilt and pushed to GitHub Pages. A server keeps it running, with GitHub Actions as the backup; updates need no Earth Engine.
Figure 2The same page on a phone.

What is MRRpy's, and what is the forecast's

All the hydrology and hydraulics are the MRRpy library's: rain onto the grid, infiltration, runoff, river routing, saved model states, and the 2-D flood maps. The forecast repository holds no model code. It reads the stations and forecasts, writes each version's rain files, runs the versions side by side, and builds the page.

The forecast code is general: another river needs only its own model.yaml and forecast.yaml, and roshi-forecast new writes both from an outlet.

Run it yourself

git clone https://github.com/SauravBhattarai19/Roshi-Forecast
cd Roshi-Forecast
scripts/install.sh       # this package and its MRRpy
.venv/bin/roshi-forecast service install
.venv/bin/roshi-forecast doctor  # what to fix
Replay · 25–29 September 2024

How early would it have seen the 2024 flood?

The forecast was replayed for the September 2024 flood on a fake clock, with an update every 3 hours. Satellite rain (IMERG) stood in for the stations, and ECMWF forecasts were used as they were issued. The model's own flood, from about 383 mm of rain over the basin on 26–28 September, peaked on the morning of 28 September.

Hours before the modelled peak that ECMWF first showed it

Panauti686 m³/s
Panauti · ≥ 80% of peak · 66 h ahead Panauti · whole peak · 42 h ahead
Khopasi840 m³/s
Khopasi · ≥ 80% of peak · 66 h ahead Khopasi · whole peak · 54 h ahead
Mangaltar (BP Highway)2,213 m³/s
Mangaltar · ≥ 80% of peak · 67 h ahead Mangaltar · whole peak · 31 h ahead
Outlet2,556 m³/s
Outlet · ≥ 80% of peak · 73 h ahead Outlet · whole peak · 31 h ahead

Figure 3. First lead time at which ECMWF showed at least 80% of the modelled peak, and all of it, at four places. Hover a mark for its value.

Table 1. Highest modelled flow and ECMWF lead times, September 2024 replay
PlaceHighest flow≥ 80% shownAll shown
Panauti686 m³/s66 h ahead42 h ahead
Khopasi840 m³/s66 h ahead54 h ahead
Mangaltar (BP Highway)2,213 m³/s67 h ahead31 h ahead
Outlet2,556 m³/s73 h ahead31 h ahead

Table 1. The same lead times as Figure 3, with the highest modelled flow.

Read with care. The forecasts are compared with the model's own result, not with measured flow. ECMWF swung between runs: at Panauti, successive runs gave 199 to 742 m³/s. In the Bagmati at Khokana the same soil maps gave about twice too much runoff, and IMERG 1.5 to 1.7 times too much rain, so these flows are likely too high. Setting real warning levels, and checking the forecast against measured floods, is the next step of Chapter 4.

MRRpy 1.0 · flood maps

From river flow to flood maps.

The flood maps in the forecast come from the flood-map stage released in MRRpy 1.0 (November 2026). It turns the routed river flow into maps of flood depth and extent, drawn on finer terrain than the model ran on: the routing runs at 90 m over the whole basin, and the flood is drawn at 30 m (or on your own LiDAR), for one town or for the whole basin.

Figure 42-D flood simulation of the Chobhar–Khokana valley: flood depth over time; hydrograph.

Two ways to spread the water

  • 2-D, the main method. A local-inertial flood simulation (Bates et al., 2010), compiled and parallel. Every river entering the area brings its routed flow, and water spreads, ponds, and backs up as on the ground. It came closer than HAND in every check below, so the forecast uses it everywhere (Figure 5).
  • Whole basins in blocks. In the forecast, a whole basin is covered with blocks that overlap by 1.5 km; each block is its own 2-D simulation, the blocks run side by side, and their cores are joined into one map. The whole Roshi Khola in 3 × 3 blocks took 45 s instead of 81 s as one block, with depths near the joins matching the one-block map to 1 cm (median).
  • HAND, the quick alternative. Every cell gets its height above the river it drains to; each reach of about 1 km gets a rating curve, and its flow gives the water level that floods all lower land. Seconds for a whole basin, with no 2-D run.
  • Rivers in their real channels. Flow paths for the maps are traced on the original terrain by least-cost search, so rivers do not cut straight lines across flat valley floors.
  • Outputs. Deepest water and flood extent as GeoTIFF and GeoJSON, time of the peak, first-wet time, duration, and an animation; redrawn without routing again.
Figure 5Deepest water from one storm, FABDEM at 30 m: HAND, 1.16 km² flooded; 2-D, 3.12 km² flooded.
Figure 6The same settings at four places, with no calibration: Montpelier, July 2023; Kathmandu, September 2024; East Rapti, September 2024; Ahr valley, July 2021.
Montpelier, Vermont, 2023

Water level within 0.2–0.4 m of high-water marks, on LiDAR

Pearl River at Jackson, 2020

0.4 m RMSE against the gauge

Kathmandu, 2024

Checked against satellite flood traces; 2-D closer than HAND everywhere

Run time, one town

49 km² of 2-D at Kathmandu in 20 s, after 117 s of routing on a 32-core workstation

Run time, whole basin

The Roshi Khola in 3 × 3 overlapping blocks: 45 s for the 2-D map of every river

Make a 2-D flood map of your own town (MRRpy Example 13)

Live forecast · every river of Nepal · in development

Nepal empirical flood forecast

A separate project that works at the other end of the scale: a river-flow forecast for every river in Nepal draining 20 km² or more, from the empirical methods used in Nepali practice. Every 2 hours it averages the rain forecasts of ECMWF, GFS, and ICON over the catchment of each river, turns them into discharge, and colours each river by the flood level its forecast reaches.

4,205river reaches of 20 km² or more, traced from the Copernicus GLO-90 DEM
105 / 112DHM hydrometric stations whose drainage area the tracing matches within 10%
2–100 yrflood levels at every point from WECS/DHM 1990, DHM 2004, MHSP 1997, WECS 2019, and Modified Dickens
2 hupdate cycle, run entirely on GitHub Actions with a NOAA GFS backup feed
Made-up storm, for illustration
Figure 7The page during a made-up 200 mm storm over central Nepal, to show the flood colours.
Live forecast, 1 November 2026
Figure 8A real dry-season forecast with Bagmati at Khokana selected: forecast peak; design floods by method.

How it works

  • Discharge from rain. SCS curve number with the SCS unit hydrograph as the main method, with the Rational, Mononobe, and B.D. Richards methods as cross-checks, added to the normal monthly flow.
  • Catchment descriptors. Area, area above 3,000 and 5,000 m, mean elevation, Kirpich time of concentration, ERA5 wetness indices, and curve numbers from ESA WorldCover.
  • Five views. Each weather model alone, where at least two agree, or the highest of any; hotspots ranked by flood level, agreement, and rise.
  • Every formula tested against the numbers printed in the source report.

Where it fits

The two forecasts are complements. The empirical forecast screens every river in Nepal in about a minute of computing, with methods engineers already use; MRRpy gives a physics-based forecast and flood maps where a basin is set up, as on the Roshi Khola. Both are uncalibrated research tests, and the empirical one is rain-driven only: snow and glacier melt, lake outbursts, and dam operations are not modelled.

Credits. Station rain through RTS (Real Time Solutions) and the hourly forecast from alertnepal, with permission; AWS at Roshi belongs to Utrecht University and S4W. Weather-model rain from Open-Meteo (CC BY 4.0), from ECMWF, NOAA GFS, and DWD ICON. Terrain from FABDEM and Copernicus GLO-90; maps © OpenStreetMap contributors.