[gradsusr] problem in running the script
Charles Seman
Charles.Seman at noaa.gov
Mon Apr 25 11:47:25 EDT 2011
Vijay,
In a script, try:
res = write(...)
Hope this helps,
Chuck
vijay pawar wrote:
>
> I want to run the following script
> 'reinit'
> 'open E:\2Months\sst\mastersst.ctl'
> 'set x 1'
> 'set y 1'
> t=1
> while(t<=217)
> 'set t 't
> 'set gxout print'
> 'set grads off'
> 'set font 1'
> 'set xlopts 1 3 0.09'
> 'set ylopts 1 3 0.09'
> 'define a= aave(sst,lon=10,lon=20,lat=-35,lat=-20)'
> 'define b= ave(a,t-5,t+6)'
> 'd a'
> say result
> c=subwrd(result,4)
> write('area1.ascii',c,append)
> t=t+1
> endwhile
>
> but I am getting the error
> unable to locate the endwhile statement for the while statement.please
> help!!
> --
> Regards,
> Vijay.Pawar(MSc Student)
> Symbiosis Institute Of Geoinformatics,
> Pune,India
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.
********************************************************************
Charles Seman Charles.Seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect any
official or unofficial position of the United States Federal Government,
the United States Department of Commerce, or NOAA."
More information about the gradsusr
mailing list