Downloads · 30 days
0
SakIMG/UFNS
UFNS is a machine learning model from SakIMG. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
SIH26085 — High-Resolution Urban Flood Nowcasting & Drainage Coupling Ministry of Earth Sciences (MoES) / National Centre for Medium Range Weather Forecasting (NCMRWF)
Downloads · 30 days
0
Access
Public
Updated Aug 30, 2026
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.tif492 MB · 29%
From the Hugging Face model README
SIH26085 — High-Resolution Urban Flood Nowcasting & Drainage Coupling
Ministry of Earth Sciences (MoES) / National Centre for Medium Range Weather Forecasting (NCMRWF)
UFNS is an operational, high-performance decision support platform designed for high-resolution urban flood nowcasting. It dynamically couples:
+---------------------------------------------------------------------------------------------------+
| UFNS v4.0.0 HIGH-SPEED PIPELINE |
+---------------------------------------------------------------------------------------------------+
| |
| [ LAYER 1: GO (Golang) — Real-Time Ingestion & Streaming Daemon ] |
| • File: `services/go_stream/main.go` |
| • Concurrently polls OpenWeatherMap, NASA IMERG/SMAP, and IMD DWR Doppler Radar mosaics. |
| • Computes Gunnar-Farneback optical flow advection vectors in Go. |
| • High-throughput WebSocket/HTTP server broadcasting telemetry with sub-millisecond scheduling. |
| |
| [ LAYER 2: C++20 / OpenMP — Ultra-Fast Physics & Hydrodynamic Solver Core ] |
| • Files: `cpp_core/solver_2d.cpp`, `cpp_core/routing.cpp`, `cpp_core/physics_engine.cpp` |
| • Multi-threaded OpenMP finite-volume 2D shallow water PDE solver. |
| • Evaluates 1.22M-cell depth matrix in <54 ms (>22.5M cells/second throughput). |
| • Sub-millisecond A* emergency evacuation routing engine with D x V passability. |
| • Exported via standard C-ABI (`libufns_physics.dll` / `.so`). |
| |
| [ LAYER 3: PYTHON / FASTAPI — Model Orchestration & REST Gateway ] |
| • Files: `apps/api/app.py`, `apps/api/impacts.py`, `services/physics_bridge.py` |
| • Zero-copy C-ABI pointer bridge (`numpy.ctypeslib`) passing raster buffers directly. |
| • Handles Nelder-Mead inverse calibration, CAP v1.2 XML emergency alerts, and REST APIs. |
| |
| [ LAYER 4: REACT 18 / TYPESCRIPT / CANVAS — Tactical GIS Dashboard ] |
| • Files: `apps/web/src/App.tsx`, `apps/web/src/components/MapView.tsx` |
| • Infinite-resolution UTM Vector AMOLED Basemap with anti-aliased shoreline glow. |
| • 60 FPS smooth 1-minute video playback with linear sub-frame keyframe interpolation. |
| • Zero-stutter RAM cache frame pre-buffering (60 minutes horizon). |
+---------------------------------------------------------------------------------------------------+
| City Domain | Coordinate Reference System | Grid Matrix | Cell Resolution | Drainage Junctions | Road Segments | Key Hydrometeorological Sensors |
|---|---|---|---|---|---|---|
| Mumbai Metropolitan Region (MMR) | EPSG:32643 (UTM 43N) | $825 \times 1486$ ($1,225,950$ cells) | $30\text{ m}$ (CartoDEM) | 1,822 junctions, 916 conduits | 2,000 segments | Colaba S-band DWR, Apollo Bandar Tide Gauge |
| Vijayawada Urban Area | EPSG:32644 (UTM 44N) | $606 \times 481$ ($291,486$ cells) | $30\text{ m}$ (SRTM DEM) | 162 junctions, 86 conduits | 2,000 segments | Machilipatnam DWR (MPT), Krishna River Gauge |
| Synthetic Benchmark Pilot | EPSG:32645 (UTM 45N) | $134 \times 134$ ($17,956$ cells) | $30\text{ m}$ | 4 junctions, 3 conduits | 85 segments | Baseline verification test suite |
Vector AMOLED (Default), Dark Carto (Authenticated, watermark-free), Voyager (Authenticated, high-contrast street), Satellite (Esri World Imagery), and CAD Grid.>= 3.11>= 18.0>= 1.22git clone https://github.com/Vinamra-Mishra/UFNS-V4.git
cd UFNS-V4
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
cd apps\web
npm install
npm run build
cd ..
.\.venv\Scripts\uvicorn.exe apps.api.app:app --host 127.0.0.1 --port 8000
Open http://127.0.0.1:8000 in your browser.
| Endpoint | Method | Description |
|---|---|---|
/api/v1/version | GET | API version, engine mode (C++20 / Vectorized SIMD), and system health. |
/api/v1/city/active | GET | Active city metadata, bounding box, DEM resolution, and sensor health. |
/api/v1/city/switch | POST | Switch active city (MUMBAI, VIJAYAWADA, DEMO). |
/api/v1/scenarios | GET | Available scenarios (S1 Dry, S2 Mild, S3 Severe, S4 Cloudburst). |
/api/v1/scenarios/{id}/frame?lead={min} | GET | Depth raster, road impacts, and mass-conservation diagnostics ($0 \le \text{lead} \le 180$). |
/api/v1/nowcast/realtime/frame?lead={min} | GET | Live radar-driven nowcast frame with optical flow advection. |
/api/v1/routing/calculate | POST | Flood-aware $A^*$ routing with clearance and $D \times V$ passability evaluation. |
/api/v1/telemetry/live | GET | Live Doppler radar, precipitation rate, tide level, and weather stats. |
/api/v1/alerts/generate | POST | Common Alerting Protocol (CAP v1.2) XML/JSON emergency broadcast. |
/api/v1/mitigation/simulate | POST | NbS sponge infrastructure retention basin sizing and benefit-cost ratio (BCR). |
v4.0.0