Fix: Asphalttemperatur-Formel temperaturabhängig (t_factor 0..1 zwischen 5-30°C), nicht mehr temperaturblind
This commit is contained in:
parent
416f32b056
commit
21b65a1e39
1 changed files with 3 additions and 1 deletions
|
|
@ -239,7 +239,9 @@ def _wind_dir(deg: float) -> str:
|
||||||
|
|
||||||
|
|
||||||
def _asphalt_temp(air_max: float, uv_max: float) -> tuple[float, str]:
|
def _asphalt_temp(air_max: float, uv_max: float) -> tuple[float, str]:
|
||||||
bonus = min(uv_max * 3.0, 30.0)
|
# UV-Bonus skaliert mit Temperatur: unter 10°C kaum Aufheizung, ab 30°C voll
|
||||||
|
t_factor = max(0.0, min(1.0, (air_max - 5) / 25))
|
||||||
|
bonus = min(uv_max * 3.0 * t_factor, 30.0)
|
||||||
asphalt = air_max + bonus
|
asphalt = air_max + bonus
|
||||||
if asphalt <= 30:
|
if asphalt <= 30:
|
||||||
warn = 'safe'
|
warn = 'safe'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue