<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
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<61)
<br />while (yloc<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' 'lonn' ' 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 />>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr><td valign="top" 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; -x-system-font: none;">
<pre>
<br />>
<br />> I want to convert binary to txt files , with
the output format.
<br />>
<br />> LONGITUDE LATITUDE zonal_wind_spee
<br />>
<br />> My ctl file is:
<br />>
<br />> dset ^ver.bin
<br />> undef
9.999E+20
<br />> * 2000
<br />> ydef 62 linear -45.25 0.5
<br />> xdef 61
linear -95.25 0.5
<br />> tdef 1 linear 00Z01jan2000 1dy
<br />> zdef 1 linear 1
1
<br />> vars 2
<br />> zonal_wind_spee 0 99 zonal wind speed component
<br />>
meridional_wind 0 99 meridional wind speed component
<br />>
<br />> Can
anybody help me resolve this problem?
<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>
</BODY>
</HTML>