<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">leandro thanks, the script works very&nbsp; well.<br><br><br><br><br>--- El <b>mar, 12/5/09, 1T(T) Leandro Machado <i>&lt;leandro@SMM.MIL.BR&gt;</i></b> escribió:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: 1T(T) Leandro Machado &lt;leandro@SMM.MIL.BR&gt;<br>Asunto: Re: output in txt format<br>Para: GRADSUSR@LIST.CINECA.IT<br>Fecha: martes, 12 mayo, 2009 9:33<br><br><div id="yiv1572788788">

 
 
Diego,
<br>
<br>You you should try to use this script:
<br>
<br>'open CTLFILE'
<br>xloc=1
<br>yloc=1
<br>'set t 1'
<br>while (xloc&lt;61)
<br>while (yloc&lt;62)
<br>'set x 'xloc
<br>'set y 'yloc
<br>'q dims'
<br>latt=sublin(result,3)
<br>latt=subwrd(latt,6)
<br>'q dims'
<br>lonn=sublin(result,2)
<br>lonn=subwrd(lonn,6)
<br>'d zonal_wind_spee'
<br>u=subwrd(result,4)
<br>write (gra.txt,latt'&nbsp; 'lonn' &nbsp; ' u,append)
<br>yloc=yloc+1
<br>endwhile
<br>xloc=xloc+1
<br>yloc=1
<br>endwhile
<br>
<br>Bests regards
<br>
<br>Leandro Machado
<br>
<br><font size="2"><b>On Tue, 12 May 2009 19:41:44 +0000, diego wrote</b>
<br>&gt; 
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<pre><br>&gt; <br><br>&gt; I want to convert binary  to txt files , with <br>the output format.<br><br>&gt; <br><br>&gt; LONGITUDE LATITUDE zonal_wind_spee<br><br>&gt; <br><br><br>&gt; My ctl file is:<br><br>&gt; <br><br>&gt; dset ^ver.bin<br><br>&gt; undef <br>9.999E+20<br><br>&gt; * 2000<br><br>&gt; ydef 62 linear -45.25 0.5<br><br>&gt; xdef 61 <br>linear -95.25 0.5<br><br>&gt; tdef 1 linear 00Z01jan2000 1dy<br><br>&gt; zdef 1 linear 1 <br>1<br><br>&gt; vars 2<br><br>&gt; zonal_wind_spee 0 99 zonal wind speed component<br><br>&gt; <br>meridional_wind 0 99 meridional wind speed component<br><br>&gt; <br><br>&gt; Can <br>anybody help me resolve this problem?<br><br>&gt; <br></pre></td></tr>
</tbody>
</table>

<br>
<br>
<br>1T(T) Leandro Machado 

<br>
Ajudante da Seção de Modelagem Atmosférica 

<br>
Centro de Hidrografia da Marinha 

<br>
R Barão de Jaceguai, s/n 

<br>
Ponta da Armação - Niterói 

<br>
CEP 24.048-900 

<br>
tel: (21) 2189-3282/3283 fax: (21) 
2189-3295
<br>
</font>
 
</div></blockquote></td></tr></table><br>