<div dir="ltr">Not totally sure,but I think you need to define your variable before <div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px">ga&gt; set sdfwrite <a href="http://output.nc/" target="_blank">output.nc</a></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px">ga&gt; sdfwrite tot_precip</div></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px">
<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px">also, make sure your variable name name is RF, initially I would suggest to use the same or a very short one (like pr)</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px"><br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px">
Best regards</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:15.555556297302246px">Luis</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 2:12 AM, jayanti pal <span dir="ltr">&lt;<a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span><br></span></div><div></div>
<div> Dear sir,</div><div><br></div><div>I have used grads 2.0.2 version in Ubuntu linux (versiob 12.04). I want to save an image output in netcdf format and i have used following codes</div><div><br></div><div>ga&gt; sdfopen <a href="http://ppt3.nc" target="_blank">ppt3.nc</a></div>
<div>ga&gt; q file</div><div>ga&gt; set lat 0 40</div><div>ga&gt; set lon 60 100</div><div>ga&gt; set gxout shaded</div><div>ga&gt; set grads off</div><div>ga&gt; d tot_precip</div><div>ga&gt; xcbar</div><div>ga&gt; draw title precipitation over India</div>
<div>ga&gt; draw xlabs longitude</div><div>ga&gt; draw ylabs latitude</div><div>ga&gt; set sdfwrite <a href="http://output.nc" target="_blank">output.nc</a></div><div>ga&gt; sdfwrite tot_precip</div><div><br></div><div><br>
</div><div>after putting this comment its show &quot; variable not define&quot;</div><div><br></div><div>and when i used the followinf
 comment to define:</div><div><br></div><div> ga&gt; define tot_precip = RF</div><div><br></div><div>then it shows &quot; too long name, missing &quot;=&quot;.</div><div><br></div><div> I need help urgently</div><div>If you kindly help me  I will grateful to you.</div>
<div> Thanking you,</div><div><br></div><div>Jayanti Pal<br>Junior Research Fellow<br>Department of Atmospheric SCience<br>University Of Calcutta<br><a href="mailto:email-jiban_samudra18@yahoo.com" target="_blank">email-jiban_samudra18@yahoo.com</a><br>
<a href="mailto:jayantibright@gmail.com" target="_blank">jayantibright@gmail.com</a></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="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></blockquote></div><br></div>