<div dir="ltr"><div><div>I'm new to GrADS - kind of. Just started playing with it a few days ago. Forgive me if this is a beginner's question.<br><br>Is it possible in a grads script to run conditional formating on values based on other grid values without generating a basemap/mask?<br><br></div>I'm trying to show liquid/frozen precipitation on the NCEP Reanalysis 2c - using the <a href="http://air.2014.nc">air.2014.nc</a> file as "1", <a href="http://air.sfc.2014.nc">air.sfc.2014.nc</a> file as "2", and the <a href="http://prate.2014.nc">prate.2014.nc</a> as "3". <br><br></div>I'm eventually wanting to return colors based off surface, 850mb, and prate. RIght now I tried to make a rule to just color everything falling into below freezing air a different color, but it's not working as instead it appears to be taking the entire grid values not every single point and analyzing each grid.<br><br>'clear'<br>'set timelab'<br>'set gxout shaded'<br>'set map 1'<br>'set lev 0'<br><br>'define airt=(air.2)*9/5-459.67'<br><br>if('airt' < 32)<br><br>'set clevs 0.1 0.25 0.5 1 2 3 4 5 6 7 8 9 10'<br>'set ccols 104 151 152 153 154 155 122 124 126 128 130 131 132 133'<br><br>else<br><br>'set clevs 0.2 0.5 1 3 5 8'<br>'set ccols 200 116 201 202 176 203'<br><br>endif<br><br>'draw title PRATE - tYear: Interval timeVar (time)'<br>'display (prate.3*10000)'<br><br clear="all"><div><div><div><br>-- <br><div class="gmail_signature">Thank you,<br><br>Anthony Stump<br><a href="mailto:anthonystump@kc.rr.com" target="_blank">anthonystump@kc.rr.com</a><br><a href="mailto:f00dl3a@gmail.com" target="_blank">f00dl3a@gmail.com</a><br></div>
</div></div></div></div>