From info at uwbeinternational.org Mon Apr 5 13:27:08 2021 From: info at uwbeinternational.org (UwBe International - Severe Weather Research) Date: Mon, 5 Apr 2021 19:27:08 +0200 Subject: [gradsusr] Question about variables, if, else with maskout and const Message-ID: <8c8c402b-8fe9-a045-8393-a0cc98605bb8@uwbeinternational.org> Hello Everyone Sorry, i'm an a beginer in GrADS and came from php, etc. I have read many documentation and tutorials, but i have still problems to understand the const and maskout function. Now, i have a few questions and hope you can answer it and give me maybe a example. 1. how i can get a value from a variable? Example; i will get the temperature of tmp2m (result 71 fahreinheit or 65 fahreinheit, etc). 2. how i can write a if/else statement grads likely with const and maskout? Example, i will plot a shaded file and values only, if cape180mb are over 500J/kg and the shear is over 10m/s ? Example what i try to get: If the cape180mb is over 500J/kg AND the shear is over 10m/s, then grads should draw yellow color in the area, where caoe is over 500J and shear over 10m. on the other areas it should be nothing colored/drawed. I don't know all of it, but in PHP i would be solved the problem with if/else: if(cape >= 500 && shear > 10m/s) draw red shades over the areas with the values above else if (cape > 200 && < 500 && shear = 10m/s) draw yellow shades over the areas else draw nothing (the chart/color should be white/transaprent) Thank you for your inputs and help -- 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 E-Mail: info at uwbeinternational.org Web: www.uwbeinternational.org Find us on Facebook -- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- 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: