[gradsusr] how to put the output numbers in an excel or a text file

T. haghroosta haghroosta at hotmail.com
Tue Feb 12 23:50:19 EST 2013


Dear Ricardo, I have attached my script to the email. All parameters are appeared in terminal window. When I added the res=write('filename.txt',newvar,append)
'quit'
 to the end of the script, I should replace r2,r3,r4,r5,f2,f3,f4,f5 with "newvar" but it dosen't work correctly. I mean after running the script in 'filename.text' I just see r1 and after running again I see one another r1 is placed beside the previous one! What should I do? Can I write those number in an excel file? Regards, T.


> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <20130212154325.M14837 at model.iag.usp.br>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Dear T.,
> 
> test each variable value after capturing it with "subwrd(result,4)".
> 
> If the values appear on the terminal, they have to appear in the filename.txt too.
> 
> Anyway, if you still have problems with this, please, send me a copy of your script. Sometimes it is only a small detail.
> 
> Regards,
> Ricardo
> 
> On Mon, 11 Feb 2013 18:32:52 +0000, T. haghroosta wrote
> > Dear Ricardo,
> > ?
> > It works, but I have 10 oputputs and I tried your suggestion in this way:
> > ?
> > res=write('filename.txt', r1, r2, r3, r4, r5, f1, f2, f3 ,f4 ,f5 ,append)
> > ?
> > Which I used for all outputs the "subwrd(result,4)". The outputs are shown in the window, but the txt file just shows the r1 and f1!? What is the problem?
> > ?
> > Regards,
> > ?
> > T. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130213/e7cb1ada/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: E1.gs
Type: application/octet-stream
Size: 923 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130213/e7cb1ada/attachment-0003.obj 


More information about the gradsusr mailing list