Gonzalo,<br><br> If you are talking about trying something like this:<br><br><result1> <result2> <result3> <result4><br><br>You could calculate the variables prior to writing them and assign them different names so that your resulting write() would look something like this.<br>
<br>res = write (icao'_FOUS.txt',TT''PTT''R1''R2''R3' 'VVV''LI' 'PS''DD''FF' 'HH''T1''T3''T5) <br><br>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.<br>
<br>Output looks like this sample:<br><br>00000896162 -1996 032307 59191208<br>03000734021 03000 042908 58171107<br>06000842608 00007 052908 55130904<br>09000643014 00011 052809 55120701<br>12000752825 02516 083108 54080401<br>
<br>If your row is to be continuous I am not certain how to conquer that one.<br><br>-Shawn <br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 9:27 AM, gonzalo infante llorca <span dir="ltr"><<a href="mailto:gonzaloinfantellorca@gmail.com">gonzaloinfantellorca@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">thanks everyone,<br>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<br>
write(txtfile,variable,append)<br>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??<br>
Thanks in advance<br>Gonzalo<br><br><div class="gmail_quote">El 19 de junio de 2009 00:14, Rafael Mundaray <span dir="ltr"><<a href="mailto:remm69@gmail.com" target="_blank">remm69@gmail.com</a>></span> escribió:<div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey Gonzalo try with this... I made this some years old... And I have several modifications of its...<br>But this is the original that I made...<br>You can use it to obtain a txt file with all data in all grid points in your model file...<br>
<br>----------------------<br>Por tu nombre creo que hablas español aquí te escribo lo de arriba en español pero mejor explicado...<br>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...<br>
Prueba y cualquier cosa me dices...<br><font color="#888888">-- <br>Ing. Rafael E. Mundaray M.<br>
</font></blockquote></div></div></div><br>
</blockquote></div><br>