<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:14pt"><div><span><span lang="EN">Hi Salkim,</span></span></div><div><span><span lang="EN">The problem with the code is that you did not tell grads in your second define which file to get the variable from. You can do this</span></span></div><div><span><span lang="EN">by using (evp.1 and evp.2 for the first and second files respectivel). I wonder why you are the colour palette TWICE and resetting.</span></span></div><div><span><span lang="EN">See below a revised code<var id="yui-ie-cursor"></var></span></span></div><div><span><span lang="EN"></span></span><span><span lang="EN"></span></span><span><span lang="EN"></span></span> </div><div><span><span lang="EN">'reinit'</span></span></div><div><span><span lang="EN">'open SRFreadRF.ctl'</span></span></div><div><span><span lang="EN">'open SRFreadFUT.ctl'</span></span></div><span><span
lang="EN"><div>'set mpdset hires'</div><div>'set gxout shaded'</div><div>'set display color white'</div><div>'c'</div><div>'define rf=ave(evp.1,t=1,t=12)'</div><div>'define fut=ave(evp.2,t=1,t=12)'</div></span></span><div><span><span lang="EN"><span><span lang="EN">palette()</span></span></span></span></div><div><span><span lang="EN"><span><span lang="EN">'set gxout shaded'</span></span></span></span></div><span><span lang="EN"><div>'set clevs -5 -4 -3 -2 -1 1 2 3 4 5'</div><div>'set ccols 16 17 18 19 20 21 22 23 24 25'</span></span><span><span lang="EN">'d (fut-rf)'</div><div>'run /usr/local/lib/grads/cbar.gs'</div><div>'draw title Difference between Future and RF datas'</div><div>'printim diffevp.gif'</div></span></span><div><span><span lang="EN">function palette()</div><div>'set rgb 16 0 0 255'</div><div>'set rgb 17 55 55 255'</div><div>'set rgb 18 110 110 255'</div><div>'set rgb 19 165 165 255'</div><div>'set rgb 20 220 220 255'</div><div>'set
rgb 21 255 220 220'</div><div>'set rgb 22 255 165 165'</div><div>'set rgb 23 255 110 110'</div><div>'set rgb 24 255 55 55'</div><div>'set rgb 25 255 0 0'</div><div>return</span><br class="yui-cursor"></div></span><div></div><div> </div><div id="RTEContent"><div><div><b><em>===================================================</em></b></div><div><b><em><font color="#007f40" face="lucida console, sans-serif">ZABLONE OWITI<br></font><font face="garamond, new york, times, serif">GRADUATE STUDENT<br>Nanjing University of Information, Science and Technology<br>College of Atmospheric Science<br>Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br></font></em></b><font color="#333333" face="garamond, new york, times, serif">Tel: +86-25-58731402<br>Fax: +86-25-58731456</font></div><div><b><em><font face="garamond, new york, times, serif">Mob. 15077895632</font></em></b></div><div><b><em>Website: <a href="http://www.nuist.edu.cn/" rel="nofollow"
target="_blank">www.nuist.edu.cn</a><br></em></b><i><strong>====================================================<br></strong><span style="font-family: garamond, new york, times, serif; font-style: italic;" class="ms__id519"><div class="MsoNormal"><i><span style="color: rgb(227, 108, 10); font-size: 12pt;">"The real art of conversation is not only to say the right thing at the right time, but also to leave unsaid the wrong thing at the tempting moment."</span></i><i><span style="color: rgb(227, 108, 10); font-size: 12pt;"></span></i></div><div class="MsoNormal"> </div></span></i><br></div></div></div><div><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left-color: rgb(16, 16, 255); border-left-width: 2px; border-left-style: solid;"><div style="font-family: garamond, new york, times, serif; font-size: 14pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font size="2" face="Arial"><div
style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div><b><span style="font-weight: bold;">From:</span></b> Emre Salkım <emre@me.com><br><b><span style="font-weight: bold;">To:</span></b> gradsusr@gradsusr.org<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, 11 April 2011 7:20 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [gradsusr] Cannot plot color bar: No shading information.<br></font><br> <div id="yiv683234828">Dear Users,<div><br></div><div>I would like to ask a question about a message that Grads gives when I try to run my script shown below.</div><div><br></div><div><div>'c'</div><div>'open SRFreadRF.ctl'</div><div>'set mpdset hires'</div><div>'set gxout shaded'</div><div>'set display color white'</div><div>'set rgb 16 0 0 255'</div><div>'set rgb 17 55 55
255'</div><div>'set rgb 18 110 110 255'</div><div>'set rgb 19 165 165 255'</div><div>'set rgb 20 220 220 255'</div><div>'set rgb 21 255 220 220'</div><div>'set rgb 22 255 165 165'</div><div>'set rgb 23 255 110 110'</div><div>'set rgb 24 255 55 55'</div><div>'set rgb 25 255 0 0'</div><div>'set clevs -5 -4 -3 -2 -1 1 2 3 4 5'</div><div>'set ccols 16 17 18 19 20 21 22 23 24 25'</div><div>'define rf=ave(evp,t=1,t=12)'</div><div>'reset'</div><div>'open SRFreadFUT.ctl'</div><div>'set mpdset hires'</div><div>'set gxout shaded'</div><div>'set display color white'</div><div>'set rgb 16 0 0 255'</div><div>'set rgb 17 55 55 255'</div><div>'set rgb 18 110 110 255'</div><div>'set rgb 19 165 165 255'</div><div>'set rgb 20 220 220 255'</div><div>'set rgb 21 255 220 220'</div><div>'set rgb 22 255 165 165'</div><div>'set rgb 23 255 110 110'</div><div>'set rgb 24 255 55 55'</div><div>'set rgb 25 255 0
0'</div><div>'set clevs -5 -4 -3 -2 -1 1 2 3 4 5'</div><div>'set ccols 16 17 18 19 20 21 22 23 24 25'</div><div>'define fut=ave(evp,t=1,t=12)'</div><div>'d (fut-rf)'</div><div>'run /usr/local/lib/grads/cbar.gs'</div><div>'draw title Difference between Future and RF datas'</div><div>'printim diffevp.gif'</div><div>'quit'</div></div><div><br></div><div>As I run this script Grads says:</div><div><br></div><div>"Cannot plot color bar: No shading information". </div><div><br></div><div>Although I've set gxout shaded and also I've set rgb colors that I wanted to use already. What I try to do in this script is to get the difference of a variable, between the future and past datas from two different data files. I really couldn't find where I am making the mistake. Can you please help me? </div><div><br></div><div>I am running the latest Grads version available (<span style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"
class="yiv683234828Apple-style-span">GrADS 2.0.a9) for Mac and am running Grads</span> on Mac OS X 10.6.7.</div><div><br></div><div>Thank you and best regards;</div><div><br></div><div>Emre Salkim</div><div><br></div><div><br></div></div><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" ymailto="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br><br></div></div></blockquote></div></div></body></html>