<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Dear Ricardo,<BR> <BR>It works, but I have 10 oputputs and I tried your suggestion in this way:<BR> <BR>res=write('filename.txt', r1, r2, r3, r4, r5, f1, f2, f3 ,f4 ,f5 ,append)<BR> <BR>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?<BR> <BR>Regards,<BR> <BR>T.<br> <BR><div><div id="SkyDrivePlaceholder"></div><br><br>> ------------------------------<br>> <br>> Message: 8<br>> Date: Mon, 11 Feb 2013 12:50:35 -0300<br>> From: "Ricardo Hallak" <hallak@model.iag.usp.br><br>> Subject: Re: [gradsusr] how to put the output numbers in an excel or a<br>>         text        file<br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID: <20130211154118.M8968@model.iag.usp.br><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> Dear T.,<br>> try this:<br>> <br>> 'reinit'<br>> 'open E:\test.ctl'<br>> 'set t 1'<br>> 'set lat 10'<br>> 'set lon 135'<br>> 'define r1= sst'<br>> 'set t 2'<br>> 'set lat 20'<br>> 'set lon 100'<br>> 'define r2= sst'<br>> 'define aver= (r1+r2)/2'<br>> 'd aver'<br>> newvar=subwrd(result,4)<br>> res=write('filename.txt',newvar,append)<br>> 'quit'<br>> <br>> Hope this helps.<br>> Ricardo<br>> <br>> On Mon, 11 Feb 2013 13:04:58 +0000, T. haghroosta wrote<br>> > ?<br>> > <br>> > <br>> > Dear?All,<br>> > ?<br>> > I?wrote this script and I would like to see the amount of "aver" as an output in a .txt? or .xls file. Could you please help me?<br>> > ?<br>> > 'reinit'<br>> > 'open E:\test.ctl'<br>> > 'set t 1'<br>> > 'set lat 10'<br>> > 'set lon 135'<br>> > 'define r1= sst'<br>> > 'set t 2'<br>> > 'set lat 20'<br>> > 'set lon 100'<br>> > 'define r2= sst'<br>> > 'define aver= (r1+r2)/2'<br>> > <br>> > ?Regards,<br>> > ?<br>
> > T.<br>> > ?<br>> > <br>> > > Dear All, I have a script to calculate the average of different groups of numbers. How can I show the outputs of the script running, contain numbers, in an excel or a text file? Regards, T. <br>> > > -------------- next part --------------<br>> > > An HTML attachment was scrubbed...<br>> > > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130208/ca3e352a/attachment-0001.html <br>> > > <br>> > > ------------------------------<br>> > > <br>> > > Message: 2<br>> > > Date: Fri, 8 !Feb 2013 10:37:44 -0200<br>> > > From: RafaelCB <rafael.ciram@gmail.com><br>> > > Subject: Re: [gradsusr] how put the output numbers in an excel or a<br>> > > text file<br>> > > To: GrADS Users Forum <gradsusr@gradsusr.org><br>> > > Message-ID:<br>> > > <CAAgZ0pL8bQHs235nXYfTZzKJwEj1uPot9PrUbnz2evQGQowCAA@mail.gmail.com><br>> > > Content-Type: text/plain; charset="iso-8859-1"<br>> > > <br>> > > An example follows:<br>> > > <br>> > > 'd gr2stn(rh.1,min.2)'<br>> > > rh=sublin(result,_n2)<br>> > > 'd gr2stn(u10.1,min.2)'<br>> > > u1=sublin(result,_n2)<br>> > > '!echo 'dia','hora','_sig','lo','la','rh','u1' | sed s@\ @@g >> verific.dat'<br>> > > <br>> > > I have helped.<br>> > > <br>> > > Regards.<br>> > > -- <br>> > > *Rafael Censi Borges<br>> > > Meteorologia - Epagri/Ciram<br>> > > +55 (48)3665-5130<br>> > > http://ciram.epagri.sc.gov.br*<br>> > > <br>> > > <br>> > > 2013/2/8 T. haghroosta <haghroosta@hotmail.com><br>> > > <br>> > > > Dear All,<br>> > > ><br>> > > &g!t; I have a script to calculate the average of different groups of numbers.<br>> > > > How can I show the outpu
ts of the script running, contain numbers, in an<br>> > > > excel or a text file?<br>> > > ><br>> > > > Regards,<br>> > > ><br>> > > > T.<br>> > > ><br>> > > > _______________________________________________<br>> > > > gradsusr mailing list<br>> > > > gradsusr@gradsusr.org<br>> > > > http://gradsusr.org/mailman/listinfo/gradsusr<br>> > > ><br>> > > ><br>> > > -------------- next part --------------<br>> > > An HTML attachment was scrubbed...<br>> > > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130208/d9812b61/attachment-0001.html <br>> > > <br>> > > ------------------------------<br>> > > <br>> > > _______________________________________________<br>> > > gradsusr mailing list<br>> > > gradsusr@gradsusr.org<br>> > > http://gradsusr.org/mailman/listinfo/gradsusr<br>> > > <br>> > > <br>> > > End of gradsusr Digest, Vol 36, Issue 38<br>> > > ****************************************<br>> ><br>> <br>> Ricardo Hallak<br>> <br>> Departamento de Ci?ncias Atmosf?ricas (ACA) <br>> Instituto de Astronomia, Geof?sica e Ci?ncias Atmosf?ricas (IAG) <br>> Universidade de S?o Paulo (USP) <br>> Rua do Mat?o, 1226 - Cidade Universit?ria - S?o Paulo SP 05508-900 <br>> Phone.: +55 (11) 3091-2850; 3091-4703 <br>> Fax: +55 (11) 3091-4714<br>> <br>> <br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130211/dee40dd3/attachment.html <br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br>> <br>> <br>> End of gradsusr Digest, Vol 36, I
ssue 41<br>> ****************************************<br></div>                                            </div></body>
</html>