No subject

Shawn Delaney sd19surf at GMAIL.COM
Fri Jun 19 14:51:24 EDT 2009


Gonzalo,

        If you are talking about trying something like this:

<result1>  <result2>  <result3>  <result4>

You could calculate the variables prior to writing them and assign them
different names so that your resulting write() would look something like
this.

res = write (icao'_FOUS.txt',TT''PTT''R1''R2''R3' 'VVV''LI' 'PS''DD''FF'
'HH''T1''T3''T5)

This is from a FOUS script I created all the variable names are in quotes
with the spacing I wanted in between. Then I run the variables through a
loop (changing the time) it appends the row of output below the previous
line.

Output looks like this sample:

00000896162 -1996 032307 59191208
03000734021 03000 042908 58171107
06000842608 00007 052908 55130904
09000643014 00011 052809 55120701
12000752825 02516 083108 54080401

If your row is to be continuous I am not certain how to conquer that one.

-Shawn


On Fri, Jun 19, 2009 at 9:27 AM, gonzalo infante llorca <
gonzaloinfantellorca at gmail.com> wrote:

> thanks everyone,
> i think with the write commnad i can do what i need. The only problem is
> that i do not hav much control on where to append the new data. For example
> if i write
> write(txtfile,variable,append)
> everytime i call to this function it will append a new value just below the
> old one i.e. columns, and i would like to fill the file in rows. Does anyone
> know how to control this??
> Thanks in advance
> Gonzalo
>
> El 19 de junio de 2009 00:14, Rafael Mundaray <remm69 at gmail.com> escribió:
>
> Hey Gonzalo try with this... I made this some years old... And I have
>> several modifications of its...
>> But this is the original that I made...
>> You can use it to obtain a txt file with all data in all grid points in
>> your model file...
>>
>> ----------------------
>> Por tu nombre creo que hablas español aquí te escribo lo de arriba en
>> español pero mejor explicado...
>> El archivo abre el .ctl de grads que estes usando... Esa línea debes
>> modificarla, al igual que el nombre del archivo que vas a crear, también las
>> rutas obviamente... Y debes cambiar el nombre de la variable donde pongo
>> display...
>> Prueba y cualquier cosa me dices...
>> --
>> Ing. Rafael E. Mundaray M.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/8187a964/attachment.html 


More information about the gradsusr mailing list