Badal
Badal (Hindi/Urdu: बादल — cloud) — weather and atmospheric modeling engine for AGNOS
Complete meteorology library: ISA atmosphere, pressure systems, moisture/humidity, cloud classification, wind dynamics, atmospheric stability, precipitation, radiation budget, mesoscale phenomena, severe weather indices, and integration with pravash (fluid dynamics) and ushma (thermodynamics). Built on hisab for math.
Features
| Feature | Default | Description |
|---|---|---|
atmosphere |
always | ISA model, AtmosphericState, virtual/potential temp, pressure/density altitude |
pressure |
always | Barometric formula, PGF, geostrophic wind, sea level correction |
moisture |
always | Saturation VP (Bolton), dew point, humidity, heat index (NWS), wet bulb |
cloud |
always | 10 CloudType variants, cloud base, LCL |
wind |
always | Coriolis, wind chill, Beaufort, thermal wind, direction, log profile |
stability |
always | CAPE, CIN, lapse rates, lifted/K/TT indices, Brunt-Väisälä |
precipitation |
always | Rain rate, 7 precip types, WMO intensity, snow SLR, freezing level |
radiation |
always | Solar geometry, irradiance, longwave, net radiation, DTR, day length |
mesoscale |
always | Sea/land breeze, katabatic/anabatic, valley wind, UHI, canyon |
severe |
always | SCP, STP, DCP, BRN, EHI, ThreatLevel |
fluids |
opt-in | Pravash coupling: atmospheric grid, Coriolis/PGF forcing, flood modeling |
thermo |
opt-in | Ushma coupling: surface energy balance, ET₀, heat fluxes |
logging |
opt-in | Structured tracing via BADAL_LOG env var |
Quick Start
[]
= "1"
use ;
let state = at_altitude;
println!;
let dp = dew_point.unwrap;
let rate = rain_rate;
let day = day_length;
let b = beaufort_scale; // 7 (High wind)
Building
Consumers
- kiran/joshua — game weather, environmental effects
- bhava 1.5 — planetary conditions → personality modulation
- pavan — atmospheric state feeds aerodynamics
- goonj — temperature → speed of sound
License
GPL-3.0-only — see LICENSE.