[gradsusr] Running formatting based on grid values

Anthony Stump f00dl3a at gmail.com
Sun Jan 29 13:17:49 EST 2017


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.

Is it possible in a grads script to run conditional formating on values
based on other grid values without generating a basemap/mask?

I'm trying to show liquid/frozen precipitation on the NCEP Reanalysis 2c -
using the air.2014.nc file as "1", air.sfc.2014.nc file as "2", and the
prate.2014.nc as "3".

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.

'clear'
'set timelab'
'set gxout shaded'
'set map 1'
'set lev 0'

'define airt=(air.2)*9/5-459.67'

if('airt' < 32)

'set clevs 0.1 0.25 0.5 1 2 3 4 5 6 7 8 9 10'
'set ccols 104 151 152 153 154 155 122 124 126 128 130 131 132 133'

else

'set clevs 0.2 0.5 1 3 5 8'
'set ccols 200 116 201 202 176 203'

endif

'draw title PRATE - tYear: Interval timeVar (time)'
'display (prate.3*10000)'


-- 
Thank you,

Anthony Stump
anthonystump at kc.rr.com
f00dl3a at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170129/bab82c42/attachment.html 


More information about the gradsusr mailing list