[gradsusr] script to write data to text file

saeed bayat saeedbayat7276 at gmail.com
Thu Jun 30 09:03:10 EDT 2011


Hi Chinh

set lat y1 y2
set lon x1 x2

Regards

Saeed Bayat
M.A Student of Climatology
Department of Geography
Ferdowsi University of Mashhad(Iran)

On Thu, Jun 30, 2011 at 11:58 AM, chinh ta huu <chinhth2010 at gmail.com>wrote:

> Dear Sir/Madam
>        Below commands is my script to write data to text file, but I get
> trouble with ended line to write to text file.
>        the array of z500 include 144x73 grid points, but the script print
> only one value in out.txt (4770.09).
>        Please tell me how to push z500 into array in order to print.
>        I will be grateful
> Thank you
>
>          'sdfopen z500.nc'
>          'set t 1'
>          'set z 1'
>          'set gxout print'
>          'set prnopts %g 1 1'
>          'd z500'
>           res=subwrd(result,20)
>           write('/home/chinhth/chinh/out.txt',res)
>
> --
> (Mr.) Ta Huu Chinh
> National, Weather Forecasting Center, Ha Noi, Viet Nam.
> No: 4th, Dang Thai Than, Hoan Kiem, Ha Noi
> Tel: 84-903-402-181
> Fax: 84-43-824-4917
> Email: chinhth2010 at gmail.com
> Website: http://vn.myblog.yahoo.com/chinhth2005/
> Website: http://bestknowledge-chinhth.blogspot.com/
> Website: http://anhcuoidep.vn
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110630/eec50c22/attachment-0003.html 


More information about the gradsusr mailing list