[gradsusr] How to combine more variables after with if true then else and draw it on the map?

UwBe International - Severe Weather Research info at uwbeinternational.org
Thu Dec 24 23:09:15 EST 2020


Hi Everyone

How do I combine several specific values in one variable and retrieve 
them afterwards, respectively check if condition = 1 or 0 ?

My goal:
I want to draw areas on the map (circle with line) or with color for the 
following situations:
1. if Cape255_0mb is higher or equal than 500J/Kg AND lifted index is 
lower or equal than -2, then draw me yellow in the corresponding places.

2. if Cape255_0mb is higher than or equal to 500j/kg AND low level shear 
is higher than or equal to 10m/s AND deep layer shear is higher than or 
equal to 10m/s AND srh3km is higher than or equal to 100m2/s2 then draw 
me these areas with orange.

etc.

Unfortunately I don't see through all the combinations. Have already 
read through and tried several tutorials, scripts, etc., but have not 
achieved the desired result. It should all be drawn on a single map.

Can someone help me / us here? :)

As Example, what i want:

* Thunderstorm 50% probability *

********************************

*CAPE 255-0hPa >= 500J/kg AND best 4 layer lifted index <= -2

*Color: rgb 216,230,16

'define 
prob=const(const(maskout(cape255_0mb,cape255_0mb-500),1.0),0,-u)*const(const(maskout(no4LFTX180_0mb,-2-no4LFTX180_0mb),1.0),0,-u)' 


'set gxout contour'

'set cstyle 1'

'set cthick 10'

'd prob'

if (cape255_0mb>= 500&no4lftxsfc<=-2)

*//TODO: Draw yellow Line for 50% probability of thunderstorms around 
the Area

*//TODO: Draw 50% Thunderstorm probability

endif

***************************************************************

* 5% Chance of a severe Thunderstorm, large hail or a Tornado *

***************************************************************

*Conditions

***********

*CAPE 255-0hPa >= 500J/kg AND low level shear >=10m/s AND deep layer 
shear >= 10m/s AND 3km storm relative helicity (SRH) >=100m2/s2

*OR large hail probability (NCEP/SPC Formula) >= 30%

*OR surface based supercell composite parameter >= 3.5

*OR surface based significant tornado parameter >= 1.2

if((cape255_0mb>= 500&lls>= 10&dls>= 10&srh3km>= 100) | (scp>=3.5) | 
(stp>=1.2))

*//TODO: Drawing Lines around the Level 1 Area (orange line)

*//DRAW LEVEL 1

endif

****************************************************************

*10% Chance of a severe Thunderstorm, large hail or a Tornado *

***************************************************************

*Conditions

***********

*CAPE 255-0hPa >= 1000J/kg AND low level shear >=15m/s AND deep layer 
shear >= 20m/s AND 3km storm relative helicity (SRH) >=150m2/s2

if ((cape255_0mb>= 1000&lls>= 15&dls>= 20&srh3km>= 150) | (scp>=7.5) | 
(stp>=2.5))

*//TODO: Drawing Lines around the Level 2 Area (red line)

*//DRAW LEVEL 2

endif

****************************************************************

*15% Chance of a severe Thunderstorm, large hail or a Tornado *

****************************************************************

*Conditions

***********

*CAPE 255-0hPa >= 2000J/kg AND low level shear >=20m/s AND deep layer 
shear >= 25m/s AND 3km storm relative helicity (SRH) >=200m2/s2

if ((cape255_0mb>= 2000&lls>= 20&dls>= 25&srh3km>= 200) | (scp>=15) | 
(stp>=5))

*//TODO: Drawing Lines around the Level 3 Area (purple line)

*//DRAW LEVEL 3

endif



Thanks a lot and Merry Christmas!
-- 
Freundliche Grüsse / Best Regards
Dominic Kurz
Präsident / CEO

*UwBe International*
*Severe Weather Observation*
Einschlagstrasse 30
CH-4622 Egerkingen
Switzerland

Tel.: +41 78 340 46 78
Direct: +41 76 270 70 87

<https://uwbeinternational.org>

-- 
Freundliche Grüsse / Best Regards
Dominic Kurz
Präsident / CEO

*UwBe International*
*Severe Weather Research & Taskforce*
Einschlagstrasse 30
CH-4622 Egerkingen
Switzerland

Tel.: +41 78 340 46 78
Direct: +41 76 270 70 87

<https://uwbeinternational.org>

E-Mail: info at uwbeinternational.org
Web: www.uwbeinternational.org <https://uwbeinternational.org>

Find us on Facebook <https://facebook.com/uwbeinternational>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201225/87ea7caf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_uwbe_transparent_black_gross.png
Type: image/png
Size: 190518 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201225/87ea7caf/attachment-0001.png>


More information about the gradsusr mailing list