thanks it worked<br><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 9:17 PM, Charles Seman <span dir="ltr"><<a href="mailto:Charles.Seman@noaa.gov">Charles.Seman@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Vijay,<br>
<br>
In a script, try:<br>
<br>
res = write(...)<br>
<br>
Hope this helps,<br>
Chuck<br>
<div><div></div><div class="h5"><br>
vijay pawar wrote:<br>
><br>
> I want to run the following script<br>
> 'reinit'<br>
> 'open E:\2Months\sst\mastersst.ctl'<br>
> 'set x 1'<br>
> 'set y 1'<br>
> t=1<br>
> while(t<=217)<br>
> 'set t 't<br>
> 'set gxout print'<br>
> 'set grads off'<br>
> 'set font 1'<br>
> 'set xlopts 1 3 0.09'<br>
> 'set ylopts 1 3 0.09'<br>
> 'define a= aave(sst,lon=10,lon=20,lat=-35,lat=-20)'<br>
> 'define b= ave(a,t-5,t+6)'<br>
> 'd a'<br>
> say result<br>
> c=subwrd(result,4)<br>
> write('area1.ascii',c,append)<br>
> t=t+1<br>
> endwhile<br>
><br>
> but I am getting the error<br>
> unable to locate the endwhile statement for the while statement.please<br>
> help!!<br>
> --<br>
> Regards,<br>
> Vijay.Pawar(MSc Student)<br>
> Symbiosis Institute Of Geoinformatics,<br>
> Pune,India<br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<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>
--<br>
<br>
Please note that <a href="mailto:Charles.Seman@noaa.gov">Charles.Seman@noaa.gov</a> should be considered my NOAA<br>
email address, not <a href="mailto:cjs@gfdl.noaa.gov">cjs@gfdl.noaa.gov</a>.<br>
<br>
********************************************************************<br>
Charles Seman <a href="mailto:Charles.Seman@noaa.gov">Charles.Seman@noaa.gov</a><br>
U.S. Department of Commerce / NOAA / OAR<br>
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547<br>
201 Forrestal Road fax: (609) 987-5063<br>
Princeton, NJ 08540-6649 <a href="http://www.gfdl.noaa.gov/~cjs/" target="_blank">http://www.gfdl.noaa.gov/~cjs/</a><br>
********************************************************************<br>
<br>
"The contents of this message are mine personally and do not reflect any<br>
official or unofficial position of the United States Federal Government,<br>
the United States Department of Commerce, or NOAA."<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>
</blockquote></div><br><br clear="all"><br>-- <br><div>Regards,</div>Vijay.Pawar(MSc Student)<div>Symbiosis Institute Of Geoinformatics,</div><div>Pune,India</div><br>