Expand description
Diagnostic mass-consistent terrain wind (NOABL/CONMESS-style).
A terrain height grid (in metres) plus a background WindField and
optional surface wind monitors become a terrain-adjusted field: each
fixed above-ground level is adjusted independently to satisfy 2-D
horizontal mass conservation (div(u) = 0 with u = u0 − ∇φ), so flow
is deflected over and around terrain. This is the cheap diagnostic tier
of terrain flow, not a full CFD solve. Entirely offline and
deterministic.
Structs§
- Height
Grid - Terrain heights on an axis-aligned, uniform grid in metres. Row-major:
heights[i * ncols + j]is columnj(east), rowi(north). Positionyis up; the grid lies in thex–zplane. - Monitor
- One surface wind observation, in the terrain grid’s frame (metres).
- Terrain
Flow Field - A diagnostic terrain-adjusted wind field.
Functions§
- local_
en_ m - Local equirectangular projection:
(east, north)metres from the reference point, for the small domains a wind network covers. Not for continental scales. - monitors_
from_ geo_ csv - Parse a monitor file of one reading per line:
latitude,longitude,speed_ms,direction_compass_from_deg,#comments and a header line are skipped. Coordinates are projected vialocal_en_mand directions rotated into the frame.