<div dir="ltr">Hello,<div><br></div><div>I'm fairly new to GrADS and am trying use a script to search through a model product using if statements and assign a value to a certain range of that product. (I.e. if temp is between 45 and 55, x = 2) I then try to have GrADS draw that variable but all I end up with is a blank map.</div><div><br></div><div>Any help would be appreciated, it's probably simple but I've been pretty much lost after trying this for a few days now.</div><div><br></div><div>My Script:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">'clear'</font></div><div><font face="monospace, monospace">'set mpdset hires'</font></div><div><font face="monospace, monospace">'sdfopen <a href="http://nomads.ncep.noaa.gov/dods/nam/nam20170417/nam_12z">http://nomads.ncep.noaa.gov/dods/nam/nam20170417/nam_12z</a>'</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'define ehi = (capesfc*hlcy1000_0m)/160000'</font></div><div><font face="monospace, monospace">'define index = 0'</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">if (ehi>=0.25 & ehi<0.50)</font></div><div><font face="monospace, monospace">index = 1</font></div><div><font face="monospace, monospace">endif</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">if (ehi>=0.50 & ehi<0.75)</font></div><div><font face="monospace, monospace">index = 2</font></div><div><font face="monospace, monospace">endif</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">if (ehi>=0.75 & ehi<1.00)</font></div><div><font face="monospace, monospace">index = 3</font></div><div><font face="monospace, monospace">endif</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">if (ehi>=1.00)</font></div><div><font face="monospace, monospace">index = 4</font></div><div><font face="monospace, monospace">endif</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'set gxout shaded'</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'d index'</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">'cbar'</font></div><div><font face="monospace, monospace">'draw title GrADS Script Test'</font></div><div><font face="monospace, monospace">'printim C:/GrADS/GrADS_script_test.png png white'</font></div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><p style="font-size:12.8px">--<u></u><u></u></p><p style="font-size:12.8px">Sincerely,<u></u><u></u></p><p style="font-size:12.8px"><b>Carter J. Humphreys<u></u><u></u></b></p><p style="font-size:12.8px"><i>Developer<u></u><u></u></i></p><p style="font-size:12.8px"><i><br></i></p><p style="font-size:12.8px"><u></u><u></u></p><p style="font-size:12.8px">Mods for GRX<u></u><u></u></p><p style="font-size:12.8px"><a href="mailto:carter.humphreys@mods-for-grx.com" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(5,99,193)">carter.humphreys@mods-for-grx.com</span></a> | Support Email: <a href="mailto:support@mods-for-grx.com" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(5,99,193)">support@mods-for-grx.com</span></a> | Website: <a href="http://www.mods-for-grx.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(5,99,193)">www.mods-for-grx.com</span></a></p></div></div></div></div></div></div></div></div>
</div></div>