Converting grads binary dat to txt file
Diane Stokes
diane.stokes at NOAA.GOV
Tue May 24 09:42:16 EDT 2005
Dear K. Kamala,
That should work. Perhaps you need more than the 3 decimal places you
have set in the format of your 'set prnopts' statement.
I suggest checking the range of your data. One way is to check the min
and max values from:
set gxout stat
d myvar
Good luck.
Diane
K.Kamala wrote:
> dear Grads users,
>
> We want to convert netcdf file to .txt
> We want output format to be in floating instead of exponential.
> we used following commands in script.
>
> sdfopen data.nc
> set lat 20
> set lon 70
> set t 1 10
> set gxout print
> set prnopts %10.3f 1 1
> d myvar
>
>
> then the output file is as follows
>
> Printing Grid -- 10 Values -- Undef = 2e+20
> 0.000
> 0.000
> 0.000
> 0.000
> 0.000
> 0.000
> 0.000
> 0.000
> 0.000
> 0.000
>
> Please help.
>
--
Diane Stokes
Environmental Modeling Center
National Weather Service/NOAA
More information about the gradsusr
mailing list