Fix AW METAR mode check for T-storms
This commit is contained in:
parent
870f14f5ec
commit
40d5f90f7d
1 changed files with 12 additions and 0 deletions
|
@ -2406,6 +2406,18 @@ if (coverage_above2 > coverage_above)
|
|||
|
||||
if (coverage_above > 6) {cumulus_flag = 0;} # no Cumulus with strong layer above
|
||||
|
||||
# check whether we have a thunderstorm reported
|
||||
|
||||
if ((getprop("/environment/metar/weather/description") == "TS") or (getprop("/environment/metar/weather[1]/description") == "TS") or (getprop("/environment/metar/weather[2]/description") == "TS"))
|
||||
{
|
||||
setprop(lw~"METAR/thunderstorm-flag", 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
setprop(lw~"METAR/thunderstorm-flag", 0);
|
||||
}
|
||||
|
||||
|
||||
# never do Cumulus when there's a thunderstorm
|
||||
if (getprop(lw~"METAR/thunderstorm-flag") ==1) {cumulus_flag = 0; thunderstorm_flag = 1;}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue