<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Lukas -- <div>This question has come up before, but the archives are hard to search through at the moment. Attached below is the question and the script fragment and image sample that illustrate how it works. </div><div>--Jennifer </div><div><br><div><div>On Mar 19, 2010, at 9:53 AM, Lukas Mosimann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello everybody<br><br>I have already used Grads for a few months but I have never tried to plot<br>station data. And now I tried to do so - but I didn't have much effort ;)<br><br>I would like to plot the temperatures of some weather stations in different<br>colors depending on the value. I tried the following<br><blockquote type="cite"><blockquote type="cite">...<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">set gxout value<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">set ccolor rainbow<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">d var<br></blockquote></blockquote><br>But I only got white values - but I would like to get colored values (not<br>points. When I use "set gxout stnmark" instead of value, I don't have any<br>problems).<br>Is there any possibility to plot such a map with station data? And what did<br>I do wrong?<br><br>Thanks a lot.<br><br>Lukas<br><br></div></blockquote></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br class="khtml-block-placeholder"></div><div>-------------------------------------------------</div><div><br></div><span class="Apple-style-span" style="font-size: medium; "><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="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal medium/normal Helvetica; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0, 0, 0); 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" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "><br></span></font></div><div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">'set lat 22 55'</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">'set lon -130 -60'</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">var = 'ts'</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><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" size="4" face="Courier"><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" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">ncols=8</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">c=1</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">while (c<=ncols)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> col=subwrd(cols,c)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> maxlev=subwrd(levs,c)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> if (c>1)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> minlev=subwrd(levs,c-1)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> endif</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> 'set ccolor 'col</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> 'set gxout value'</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> 'set stat on'</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> if (c=1)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><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" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> 'd 'belowmax</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> else</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> minandabove='(maskout('var','var'-('minlev')))'</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> if (c=ncols)</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> 'd 'minandabove</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> else</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><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" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> 'd 'belowmax</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> endif</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> endif </span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; "> c=c+1</span></font></div><div><font class="Apple-style-span" size="4" face="Courier"><span class="Apple-style-span" style="font-size: 14px; ">endwhile</span></font></div><div><br></div><div><br></div><div><img width="772" height="579" apple-height="yes" apple-width="yes" src="cid:8EB13856BC804D43946B516DCAD2A09B@wollp24"></div></div></span></span></span></div></span> </div><br></div></body></html>