output in txt format

1T(T) Leandro Machado leandro at SMM.MIL.BR
Tue May 12 22:33:16 EDT 2009


Diego,

You you should try to use this script:

'open CTLFILE'
xloc=1
yloc=1
'set t 1'
while (xloc<61)
while (yloc<62)
'set x 'xloc
'set y 'yloc
'q dims'
latt=sublin(result,3)
latt=subwrd(latt,6)
'q dims'
lonn=sublin(result,2)
lonn=subwrd(lonn,6)
'd zonal_wind_spee'
u=subwrd(result,4)
write (gra.txt,latt'  'lonn'   ' u,append)
yloc=yloc+1
endwhile
xloc=xloc+1
yloc=1
endwhile

Bests regards

Leandro Machado

On Tue, 12 May 2009 19:41:44 +0000, diego wrote
>

>

> I want to convert binary to txt files , with
the output format.

>

> LONGITUDE LATITUDE zonal_wind_spee

>

> My ctl file is:

>

> dset ^ver.bin

> undef
9.999E+20

> * 2000

> ydef 62 linear -45.25 0.5

> xdef 61
linear -95.25 0.5

> tdef 1 linear 00Z01jan2000 1dy

> zdef 1 linear 1
1

> vars 2

> zonal_wind_spee 0 99 zonal wind speed component

>
meridional_wind 0 99 meridional wind speed component

>

> Can
anybody help me resolve this problem?

>

1T(T) Leandro Machado
Ajudante da Seção de Modelagem Atmosférica
Centro de Hidrografia da Marinha
R Barão de Jaceguai, s/n
Ponta da Armação - Niterói
CEP 24.048-900
tel: (21) 2189-3282/3283 fax: (21) 2189-3295

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090513/4d22b501/attachment.html 


More information about the gradsusr mailing list