<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
Dear T.,
<br />
<br />test each variable value after capturing it with <font size="2">"subwrd(result,4)".
<br /></font><font size="2">
<br />If the values appear on the terminal, they have to appear in the filename.txt too.
<br />
<br />Anyway, if you still have problems with this, please, send me a copy of your script. Sometimes it is only a small detail.
<br />
<br />Regards,
<br />Ricardo
<br /></font>
<br /><font size="2"><b>On Mon, 11 Feb 2013 18:32:52 +0000, T. haghroosta wrote</b>
<br />>
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 />>
<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
av!
er= (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 />> >
> >
<CAAgZ0pL8bQHs235nXYfTZzKJwEj1uPot9PrUbnz2!
evQGQowCAA@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
differ!
ent 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/listinf!
o/gradsusr
<br />> >
<br />> >
<br />> > End of gradsusr Digest, Vol
36,
I
ssue 41
<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 />
</font>
</BODY>
</HTML>