<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 10, 2009, at 3:55 AM, Jennifer Faber wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div bgcolor="#ffffff" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font size="2" face="Arial">Hi Jennifer</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">I was wondering if you and your team are considering adding a feature fto GrADS to colour station value according to their value.</font></div><div><font size="2" face="Arial">Until so far there was been no good solution to my problem.</font></div></div></span></blockquote><div><br></div><div>Here is a script fragment I composed, followed by the image output. I think this is what you are trying to do...</div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br></span></font></div><div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">'set lat 22 55'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">'set lon -130 -60'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">var = 'ts'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">levs = '-15 -10 -5 0 5 10 15'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">cols = '9 4 5 3 7 8 2 6'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">ncols=8</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">c=1</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">while (c<=ncols)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> col=subwrd(cols,c)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> maxlev=subwrd(levs,c)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> if (c>1)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> minlev=subwrd(levs,c-1)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> endif</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> 'set ccolor 'col</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> 'set gxout value'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> 'set stat on'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> if (c=1)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> belowmax='(maskout('var',('maxlev'-0.0001)-'var'))'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> 'd 'belowmax</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> else</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> minandabove='(maskout('var','var'-('minlev')))'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> if (c=ncols)</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> 'd 'minandabove</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> else</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> belowmax='maskout('minandabove',('maxlev'-0.0001)-'minandabove')'</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> 'd 'belowmax</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> endif</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> endif </span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;"> c=c+1</span></font></div><div><font class="Apple-style-span" face="Courier" size="4"><span class="Apple-style-span" style="font-size: 14px;">endwhile</span></font></div><div><br></div><div><br></div><div><img height="600" width="804" apple-width="yes" apple-height="yes" src="cid:2163CD7A-3537-469E-BFAE-267EFA367B3C"></div></div></div></body></html>