New Release 2.0.a7

Jennifer Adams jma at COLA.IGES.ORG
Mon Aug 10 08:53:28 EDT 2009


On Aug 10, 2009, at 3:55 AM, Jennifer Faber wrote:

> Hi Jennifer
>
> I was wondering if you and your team are considering adding a
> feature fto GrADS to colour station value according to their value.
> Until so far there was been no good solution to my problem.

Here is a script fragment I composed, followed by the image output. I
think this is what you are trying to do...

'set lat 22 55'
'set lon -130 -60'
var = 'ts'
levs = '-15 -10 -5 0 5 10 15'
cols = '9  4   5  3 7 8  2  6'
ncols=8
c=1
while (c<=ncols)
   col=subwrd(cols,c)
   maxlev=subwrd(levs,c)
   if (c>1)
     minlev=subwrd(levs,c-1)
   endif
   'set ccolor 'col
   'set gxout value'
   'set stat on'
   if (c=1)
     belowmax='(maskout('var',('maxlev'-0.0001)-'var'))'
     'd 'belowmax
   else
     minandabove='(maskout('var','var'-('minlev')))'
     if (c=ncols)
       'd 'minandabove
     else
       belowmax='maskout('minandabove',('maxlev'-0.0001)-'minandabove')'
       'd 'belowmax
     endif
   endif
   c=c+1
endwhile


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090810/82050f90/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.png
Type: image/png
Size: 20490 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090810/82050f90/attachment.png 


More information about the gradsusr mailing list