Wind Direction Calculator
Convert wind direction between compass degrees and named bearings.
📐 计算公式
风向 16 方位换算(本页代码口径,查表映射、无算术公式):角度先归一化 ((deg mod 360)+360) mod 360;方位索引 idx=Math.round(角度÷22.5) mod 16,查 16 方位表 N/NNE/NE/ENE/E/ESE/SE/SSE/S/SSW/SW/WSW/W/WNW/NW/NNW;联动量:方位角弧度=角度×π÷180、相反风向=方位表第 (idx+8) mod 16 项。校验:空值即提示;角度须为有效数值,按 ((deg mod 360)+360) mod 360 归一(负角与 >360° 合法)。判据:每 22.5° 一档,四舍五入归属最近方位。
由风向角度(°)映射到 16 方位罗盘名称(如 N、NE、SSW)。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Wind direction | Direction = where wind comes from | WMO No.8 §5 |
| 16-point compass | 22.5° increments | WMO No.8 |
| Azimuth conversion | 0 N, 90 E, 180 S, 270 W | Observation specs |
| u-v components | u = −V sinθ, v = −V cosθ | Vector decomposition |
| Beaufort scale | 0–17 scale | GB/T 28591-2012 |
| Surface wind | 10 m height, 10-min mean | WMO No.8 |
📌 计算说明
- 气象风向指风的来向:225° 表示西南风(从西南吹来)。