Tante grazie Davide. Finalmente ha funzionato lo script. Ci sono riuscita!! Ho usato proprio il tuo consiglio.<br><br>saluti<br><br>cristina<br><br><div class="gmail_quote">2012/6/18 Davide Sacchetti <span dir="ltr">&lt;<a href="mailto:davide.sacchetti@arpal.gov.it" target="_blank">davide.sacchetti@arpal.gov.it</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">the only solution I know is:<br>
<br>
having x,y,z,t fixed:<br>
<br>
&#39;d temp&#39; -&gt; get temp_value from result<br>
&#39;d dewpoint&#39; -&gt; get dewpoint_value from result<br>
...<br>
string=temp_value&#39;   &#39;dewpoint_value&#39; ...<br>
rc=write(asciifile,string,append)<br>
<br>
hoping it helps<br>
bye bye<br>
Davide<br>
<div><div class="h5"><br>
<br>
<br>
On Mon, 2012-06-18 at 10:24 -0300, Cristina wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I am using this script to extract data in ascii:<br>
&gt;<br>
&gt; ...<br>
&gt; i=1<br>
&gt; while (i&lt;744)<br>
&gt; &#39;set t &#39;i&#39;&#39;<br>
&gt; &#39;set gxout print&#39;<br>
&gt; &#39;set prnopts %10.2f 17 1&#39;<br>
&gt; &#39;d &#39;var&#39;&#39;<br>
&gt;<br>
&gt;<br>
&gt; ascii = result<br>
&gt; asciifile = var.txt<br>
&gt; numbers = sublin(result,2)<br>
&gt; rc=write(asciifile,numbers,append)<br>
&gt; i=i+1<br>
&gt; endwhile<br>
&gt; ...<br>
&gt;<br>
&gt; I am interested to export many variables like u10,v10,t2,rh2,swd,rainc etc at a given point in this format:<br>
&gt;<br>
&gt; temp          dewpoint         pressure   ...    var4<br>
&gt; ...........................................................<br>
&gt; ..                              ....               ......<br>
&gt; ..                              ....               ......<br>
&gt;<br>
&gt; For a specified period and specific location (lat lon)<br>
&gt;<br>
&gt; Any help greatly appreciated<br>
&gt;<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; Cristina<br>
</div></div>&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
--<br>
--&gt; Attenzione cambio indirizzo: <a href="mailto:davide.sacchetti@arpal.gov.it">davide.sacchetti@arpal.gov.it</a><br>
--<br>
Davide Sacchetti<br>
Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria<br>
ARPAL Unitą Tecnica Complessa di livello Regionale<br>
V.le Brigare Partigiane 2 16121 Genova (I)<br>
tel: +39 010 6437535                    fax: +39 010 6437520<br>
mail: <a href="mailto:davide.sacchetti@arpal.gov.it">davide.sacchetti@arpal.gov.it</a>     web: <a href="http://www.meteoliguria.it" target="_blank">www.meteoliguria.it</a><br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br>