Gitdeeper4/chi-model
<div align="center">
π TSU-WAVE
Tsunami Spectral Understanding of Wave-Amplitude Variance and Energy
A Multi-Parameter Hydrodynamic Framework for Real-Time Tsunami Wave Front Evolution, Energy Transfer Analysis, and Coastal Inundation Forecasting
       
[π₯οΈ Live Dashboard](https://tsu-wave.netlify.app/dashboard) Β· [π Reports](https://tsu-wave.netlify.app/reports) Β· [π¦ PyPI](https://pypi.org/project/tsu-wave/) Β· [π Research Paper (DOI)](https://doi.org/10.5281/zenodo.18679361) Β· [π¬ OSF Repository](https://osf.io/7t6mr) Β· [π Documentation](https://tsu-wave.netlify.app/documentation)
</div>
π Table of Contents
- Overview
- Performance Metrics
- Seven Hydrodynamic Parameters
- Alert Levels
- Quick Start
- Installation
- Python API
- REST API
- Architecture
- Validation
- Key Scientific Findings
- Research & Citation
- Open Science & Registration
- Research Team
- Repositories
- License
π Overview
TSU-WAVE is a physics-based framework for real-time analysis of tsunami wave front evolution, energy transfer dynamics, and coastal inundation forecasting. It integrates seven hydrodynamic parameters into a Composite Hazard Index (CHI) that enables operational coastal warning centers to issue alerts up to 67 minutes before landfall.
The system is validated against 23 documented tsunami events spanning a 36-year period (1990β2026), across propagation distances of 180 km to 14,200 km, and verified against 712 field-measured run-up points from the International Tsunami Survey Team (ITST) database.
Seismic Source β NSWE Propagation β Bathymetric Modulation (BECF)
β Front Stability Tracking (HFSI)
β Spectral Energy Analysis (SDB, KPR)
β Shoreline Boundary Resolution (SBSP)
β Micro-Vorticity Correction (SMVI)
β CHI Composite Index β Run-up Forecast + AlertWhy TSU-WAVE?
π Performance Metrics
π¬ Seven Hydrodynamic Parameters
TSU-WAVE integrates seven physically independent indicators, each derived from governing equations of long-wave hydrodynamics:
Composite Hazard Index (CHI)
$$CHI = \sum{i=1}^{7} wi \cdot P_i^{(n)}$$
Where $P_i^{(n)}$ is each normalized parameter and optimized weights are:
wβ(WCC)=0.18 wβ(KPR)=0.16 wβ(HFSI)=0.17 wβ(BECF)=0.20
wβ
(SDB)=0.11 wβ(SBSP)=0.13 wβ(SMVI)=0.05π¨ Alert Levels
β‘ Quick Start
Docker (Recommended β 5 minutes)
git clone https://gitlab.com/gitdeeper4/tsu-wave.git
cd tsu-wave
docker-compose up -dYour system is running at:
- Dashboard: http://localhost:8080
- API Docs: http://localhost:8000/docs
pip
pip install tsu-waveπ¦ https://pypi.org/project/tsu-wave/
Try the Live Demo
π₯οΈ https://tsu-wave.netlify.app/dashboard
π οΈ Installation
System Requirements
Source Installation
# 1. Clone
git clone https://gitlab.com/gitdeeper4/tsu-wave.git
cd tsu-wave
# 2. Virtual environment
python3 -m venv venv && source venv/bin/activate
# 3. Dependencies
pip install --upgrade pip
pip install -r requirements.txt
# 4. Compile Fortran NSWE solver
cd src/core && f2py -c nswe_solver.f90 -m nswe_solver && cd ../..
# 5. Configure
cp config/config.example.yml config/config.yml
# 6. Initialize database
python scripts/init_db.py
# 7. Launch
python -m tsuwave.api.main # API server β :8000
streamlit run tsuwave/dashboard/app.py # Dashboard β :8501π Python API
from tsuwave import TSUWave
# Initialize
tsw = TSUWave()
# Get Composite Hazard Index for a coastal zone
chi = tsw.get_chi(zone="hilo_bay_hawaii")
print(f"CHI: {chi:.3f}")
# Get all seven parameters
params = tsw.get_parameters(zone="hilo_bay_hawaii")
for name, value in params.items():
print(f" {name}: {value:.4f}")
# Run-up forecast
forecast = tsw.forecast_runup(zone="khao_lak", source="sumatra")
print(f"Predicted run-up: {forecast['height_m']:.1f} m")
print(f"Lead time: {forecast['lead_time_min']} min")
# Validate against historical event
result = tsw.validate(event="tohoku_2011")
print(f"MAPE: {result['mape']:.1f}%")π REST API
# Active events
GET /api/v1/events/active
# CHI time series for an event
GET /api/v1/events/{id}/chi
# All 7 parameters
GET /api/v1/events/{id}/parameters
# Pre-computed BECF for a coastal zone
GET /api/v1/coastal/{zone}/becf
# On-demand run-up forecast
POST /api/v1/forecast/runup
# Active alerts
GET /api/v1/alerts/current
# Real-time WebSocket stream
WS /ws/v1/realtimeCLI
tsu-wave monitor # Live event monitor
tsu-wave chi --zone hilo_bay # Compute CHI
tsu-wave validate --event tohoku_2011 # Historical validationποΈ Architecture
tsu-wave/
βββ src/
β βββ core/ ββ Physics Engine (NSWE solver, CHI, BECF, SMVI)
β βββ ingest/ ββ Data Ingestion (DART, tide gauges, bathymetry)
β βββ signals/ ββ Signal Processing (bandpass, STA/LTA, FFT)
β βββ database/ ββ TimescaleDB + Redis cache
β βββ api/ ββ FastAPI REST + WebSocket
β βββ dashboard/ ββ Streamlit monitoring UI
βββ tests/ ββ 47/47 tests passing β
βββ data/ ββ ETOPO1/GEBCO grids, BECF maps, validation events
βββ notebooks/ ββ 6 Jupyter analysis notebooks
βββ config/ ββ YAML configuration files
βββ deployment/ ββ Docker, Kubernetes, Ansible
βββ docs/ ββ Full documentation suiteStack: Python 3.10+ Β· FastAPI Β· Streamlit Β· TimescaleDB Β· Redis Β· Docker Β· Kubernetes Β· Fortran (NSWE core)
β Validation
Validated against the complete global record of well-documented tsunami events meeting instrumental coverage criteria:
Full 23-event validation table: Supplementary S1 β OSF
π Key Scientific Findings
π Research & Citation
Research Paper
TSU-WAVE: A Multi-Parameter Hydrodynamic Framework for Real-Time Tsunami Wave Front Evolution, Energy Transfer Analysis, and Coastal Inundation Forecasting Samir Baladi, Dr. Elena Marchetti, Prof. Kenji Watanabe, Dr. Lars Petersen, Dr. Amira Hassan Target: Journal of Geophysical Research β Oceans (AGU) Β· February 2026 Manuscript ID: TSU-WAVE-2026-001
Cite This Work
APA:
Baladi, S., Marchetti, E., Watanabe, K., Petersen, L., & Hassan, A. (2026).
TSU-WAVE: A Multi-Parameter Hydrodynamic Framework for Real-Time Tsunami Wave
Front Evolution, Energy Transfer Analysis, and Coastal Inundation Forecasting
(v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.18679361BibTeX:
@software{baladi2026tsuwave,
author = {Baladi, Samir and Marchetti, Elena and Watanabe, Kenji
and Petersen, Lars and Hassan, Amira},
title = {{TSU-WAVE}: A Multi-Parameter Hydrodynamic Framework for
Real-Time Tsunami Wave Front Evolution, Energy Transfer
Analysis, and Coastal Inundation Forecasting},
version = {1.0.0},
year = {2026},
month = {February},
publisher = {Zenodo},
doi = {10.5281/zenodo.18679361},
url = {https://doi.org/10.5281/zenodo.18679361}
}DOI: `10.5281/zenodo.18679361`
π¬ Open Science & Registration
This project is fully committed to open science principles. All data, code, analysis plans, and results are publicly archived.
π₯ Research Team
Corresponding author: Samir Baladi β gitdeeper@gmail.com β ORCID: 0009-0003-8903-0029
Acknowledgments
The authors thank: NOAA Pacific Tsunami Warning Center (PTWC) Β· Japan Meteorological Agency (JMA) Β· IOC/UNESCOβIOTWMS Β· International Tsunami Survey Team (ITST) Β· Dr. Frank GonzΓ‘lez (NOAA-PMEL, ret.) Β· Prof. Costas Synolakis (USC).
Funding
π Repositories
π License
This project is licensed under the MIT License β see LICENSE for details. The research paper and OSF registration are licensed under CC-By Attribution 4.0 International.
π¬ Contact
Samir Baladi π§ gitdeeper@gmail.com π¬ ORCID: 0009-0003-8903-0029 π Issues: gitlab.com/gitdeeper4/tsu-wave/-/issues
<div align="center">
π TSU-WAVE β Integrated Early Warning System for Tsunami Waves and Coastal Community Protection
Version 1.0.0 (AI Edition) β February 2026
Home Β· Dashboard Β· Documentation Β· Research Paper Β· PyPI Β· OSF Β· Hugging Face Β· Reports
GitLab Β· GitHub Β· Codeberg Β· Bitbucket
Copyright Β© TSU-WAVE π β 2026 | All rights reserved
</div>
