summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-03-31 23:06:18 +0200
committerAki <please@ignore.pl>2023-03-31 23:06:18 +0200
commitdf9ac5605011e3d03601dae38b5b4150c270c464 (patch)
tree9fb68293b499e558e1e3dc89f9253df44968515c
parent0de875b0dbfce11138cdea16432ee740bebc736a (diff)
downloadwaterspout-radar-df9ac5605011e3d03601dae38b5b4150c270c464.zip
waterspout-radar-df9ac5605011e3d03601dae38b5b4150c270c464.tar.gz
waterspout-radar-df9ac5605011e3d03601dae38b5b4150c270c464.tar.bz2
Take wind criterion into account when calculating SWI
-rw-r--r--waterspout-radar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/waterspout-radar.py b/waterspout-radar.py
index c6d5ad5..ec58e64 100644
--- a/waterspout-radar.py
+++ b/waterspout-radar.py
@@ -35,7 +35,7 @@ def main():
el = calc.pressure_to_height_std(pressure)
ccd = (el - lcl).to(units.ft)
try:
- swi = szilagyi.calculate_swi(dt, ccd)
+ swi = szilagyi.calculate_swi(dt, ccd, pred.at('wind_u', _L.H850)) # merge with wind_v
except ValueError:
swi = -10
print(pred.timestamp, dt, ccd, swi)