Jeevan,<br><br>The problem is with the time definision<br><br>There two way of defining time<br><br>set t 1<br><br>or<br><br>set time 01jan2010<br><br>Your variable mmm is now having integer value. You have to convert it into three letter string. For that use the following code <br>
<br>n=m1<br>if(n=1) <br> mmm='jan' <br>endif<br>if(n=2) <br> mmm='feb' <br>endif<br>if(n=3) <br> mmm='mar' <br>endif<br>if(n=4) <br> mmm='apr' <br>endif<br>if(n=5) <br> mmm='may' <br>
endif<br>if(n=6) <br> mmm='jun' <br>endif<br>if(n=7) <br> mmm='jul' <br>endif<br>if(n=8) <br> mmm='aug' <br>endif<br>if(n=9) <br> mmm='sep' <br>endif<br>if(n=10) <br> mmm='oct' <br>
endif<br>if(n=11) <br> mmm='nov' <br>endif<br>if(n=12) <br> mmm='dec' <br>endif<br><br>then you can use format<br><br>'set time = 'dd''mmm''yyyy<br><br>Refine your code and try. <br>
<br>Regards<br><br><div class="gmail_quote">On 7 May 2010 11:16, RAJEEVAN k <span dir="ltr"><<a href="mailto:rajeevancas@gmail.com">rajeevancas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hai,<br> i want to plot precipitaion anomoly.i hv cmap data precip.mon.mean.nc.t<br>the gs file i used for this is.<br><br>the problem is that in the saved plot didplay did not came........please help me<br>'reinit'<br>
yyyy=1979<br>while(yyyy<=1981)<br>mmm=01<br>while(mmm<=12)<br><br>'sdfopen <a href="http://precip.mon.mean.nc" target="_blank">precip.mon.mean.nc</a>'<br>'set time 'mmm''yyyy''<br>'set grid off'<br>
'set grads off'<br>'set t 1 12'<br>'set gxout shaded'<br>*'set gxout contour'<br><br>'define monavg=ave(precip,t+1,t+36,12)'<br>'modify monavg seasonal'<br>'set t 1 last'<br>
'define anom = precip-monavg'<br>*'set t 1 36'<br>'set lat 8 30'<br>'set lon 70 90'<br>'d anom'<br>'printim anomoly'mmm'.'yyyy'.jpg white'<br>'c'<br>
mmm=mmm+1<br>endwhile<br>yyyy=yyyy+1<br>endwhile<br><br><br><br>error shows likes this<br><br>Syntax Error: Invalid Date/Time value.<br> Missing month abbreviation or 'z' delimiter<br>SET error: Missing or invalid arguments for TIME option<br>
Defined variable is now climatological<br><br>
<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><br clear="all"><br>-- <br>Gibies George,CSIR-RF,<br>Climate and Global Modelling Division,<br>Indian Institute of Tropical Meteorology,<br>Dr. Homi Bhabha Road,<br>NCL (P. O.), Pashan,<br>Pune 411008<br>
<br><a href="http://sites.google.com/site/gibiesge/">http://sites.google.com/site/gibiesge/</a><br><br>