output in txt format
Charles Seman
Charles.Seman at NOAA.GOV
Wed May 13 18:04:22 EDT 2009
Diego,
in a script, try:
rc = write(...)
Hope this helps,
Chuck
diego wrote:
> Thanks Leandro
>
> The script works fine but get an error.
>
> Unknown command: 0
> Unknown command: 0
> Unknown command: 0
> Unknown command: 0
> Unknown command: 0
> Unknown command: 0
> .........
> ............
> ...........
>
> As I fix this?
>
> muito obrigado
>
>
>
>
> --- El *mar, 12/5/09, 1T(T) Leandro Machado /<leandro at SMM.MIL.BR>/*
>
>
> escribió:
>
>
> De: 1T(T) Leandro Machado <leandro at SMM.MIL.BR>
> Asunto: Re: output in txt format
> Para: GRADSUSR at LIST.CINECA.IT
> Fecha: martes, 12 mayo, 2009 9:33
>
> 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
>
>
--
Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.
********************************************************************
Charles Seman Charles.Seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not necessarily
reflect any position of the Government or NOAA."
More information about the gradsusr
mailing list