# Project wind rose
Source: https://tekrisk.com/en/docs/guides/wind-rose

How to generate the wind rose from Open-Meteo or build it from your own data (table by direction, hourly CSV or frequency table) and how calculations use it.

## 1. What the rose does in calculations

The rose splits risk by the direction the wind **blows from**. Directional models (flash fire, toxic clouds, VCE, pool fire and jet fire) multiply the contribution of each of the 16 directions by its probability $P(\theta)$. Each scenario uses either the day or the night distribution, whichever you choose.

Calculations only use the **total percentage per direction**. The breakdown by stability class and speed is shown for information but does not change the results.

## 2. Wind rose generated from Open-Meteo

In **Project settings → Meteorology**, *Generate wind rose* downloads 1 to 10 years of hourly reanalysis data for the site coordinates. Each hour gets a Pasquill stability class: by day from solar radiation, by night from cloud cover.

## 3. Wind rose from your own data

The **Own data** menu offers three options. All three save the rose in the same format as the Open-Meteo rose:

<Tabs items={["Table by direction", "Hourly CSV", "Frequency table"]}>
<Tab value="Table by direction">
Type the % for each direction, by day and by night. The table is preloaded with the current rose. If the current rose had a stability breakdown, saving from the table keeps only the % per direction.
</Tab>
<Tab value="Hourly CSV">
One row per hour with `datetime`, `wind_speed_ms` (m/s at 10 m) and `wind_dir_deg` (degrees the wind blows from). The optional columns are `is_day` (1/0), `radiation_wm2` and `cloud_cover_pct`. The same Pasquill classification as for Open-Meteo applies.

- Without `is_day`, day and night are computed from the solar elevation at the project coordinates. A time without a zone is read as local solar time.
- Hours without radiation (by day) or without cloud cover (by night) get stability **ND**, but they still count in the % per direction.
- **Calm** hours (below 0.5 m/s) have no direction: they are left out of the split by direction and TekRisk reports how many there were. This keeps them from piling onto north when the station records them as 0°. In the weather classes they do count, spread evenly over the directions.
- For dates such as `03/04/2025`, the day/month or month/day order is worked out from the whole file. If no date settles it, they are read as day/month/year and you get a notice. Impossible dates such as `31/02` are rejected.
</Tab>
<Tab value="Frequency table">
One row per cell with `period` (`day`/`night`), `direction` (a compass point such as `NNE`, or degrees), `stability` and `speed_ms` (optional, but together; `speed_ms` is the measured mean speed in m/s, not a category) and `percent` (% or hours). A row without a period counts for both day and night. Repeated rows are added together, and calm rows (`direction` = `calm`) are left out of the split by direction.
</Tab>
</Tabs>

You can download a template for each CSV from the same menu. The separator can be a comma or a semicolon, and the decimal mark a point or a comma.

<Callout type="info">
If the percentages of a period do not add up to 100 %, they are rescaled to 100 % with the same proportions, and TekRisk shows the original sum.
</Callout>

## 4. Effect on results already calculated

Flash fire and VCE scenarios store the rose they were calculated with. When the project rose changes, those that used a different one are marked for recalculation (amber dot in the tree), and individual risk contours as outdated. Recalculate those scenarios first, then the contours. The rose travels inside the `.tkrp` project file, and the viewer uses it as is.

## 5. Three wind direction methods per scenario

In the weather tab of flash fire, toxic cloud, VCE with dispersion, pool fire and jet fire you choose how the wind enters individual risk:

| Method | Direction | Stability and speed |
|---|---|---|
| CCPS simplified method (Eq. 4.4.4) | uniform | the scenario's weather scenario |
| Site wind rose | rose probability per direction (day or night) | the scenario's weather scenario |
| Wind rose weather classes | each class's probability per direction | the 6 Purple Book classes (B3, D1.5, D5, D9, E5, F1.5) with their probability |

With **weather classes**, the scenario is calculated once with its weather scenario (what the results and the map show) and once per class with a probability above zero. Individual risk adds `f · Σ P(w) · Σ P(θ|w) · Pf_w`, with day and night weighted by their share of hours. Hours are allocated to classes with the Purple Book rules (CPR 18E, appendix 4.B):

- Stabilities A, A/B, B and B/C → **B**.
- C, C/D and D → **D**, by speed: low (< 2.5 m/s), medium (2.5–6 m/s) or high (> 6 m/s).
- E and F → by speed: **F** below 2.5 m/s and **E** above.

Each class's wind speed is the **mean of its hours** (at 10 m), not the one in its name; B3, D1.5… are just the usual labels. The Open-Meteo rose and the hourly CSV do this hour by hour; the frequency table uses your measured speeds. Calms (below 0.5 m/s) are spread evenly over the 16 directions, as the book does. If a class's mean falls below 1 m/s (almost only calms), it is calculated with 1 m/s, the minimum the dispersion models accept, and the card says so. A rose generated or imported before this rule is allocated approximately and the card asks you to regenerate it (Open-Meteo) or import the hourly CSV again; calculations made with the previous rules are flagged for recalculation. Pool fire and jet fire depend only on each class's wind speed.

<Callout type="warn">
It needs a rose with stability (Open-Meteo, hourly CSV or a frequency table with stability): a direction-only rose does not work. For now, the F-N curve and the general-method calculation memories still use the selected weather scenario; with scenarios in this mode, TekRisk says so and does not export those memories. The strict method does not use the classes.
</Callout>
