How to convert netcdf to ascii

Shailendra Rai r_shail77 at REDIFFMAIL.COM
Fri Sep 9 03:22:06 EDT 2005


Hello,
ncdump does not work with the gradsc.
This is unix command provided your system is having the NetCDF library installed.
on unix prompt just write %ncdump input.nc > output.txt.
If you want to do this in GrAds then you just run gradsnc and open  the file .nc file by 
>sdfopen input.nc
>set gxout fwrite
>d var
it will write the variable in Binary form and you can convert it by a simple fortran program.
bye

  


On Fri, 09 Sep 2005 Mari Kauhaniemi wrote :
>Hi,
>I have tried to convert netcdf files to the ASCII using following command:
>
>ncdump input.nc > output.txt
>
>where input.nc is my netcdf input file and output.txt would be the
>output ASCII file.
>This command does not work. It only gives the “Unknown command: ncdump”
>-message. I have also tried it by writing a simple script test.gs:
>
>‘sdfopen input.nc’
>‘ncdump input.nc > output.txt’
>
>and then used a command:
>
>run test
>
>The same error message comes from that. I.e., sdfopen command works but
>the command ncdump doesn’t. I am using Grads version 1.8SL11 and I have
>always opened gradsnc with a command
>
>ga –l
>
>As I am new with Grads I may not know all (even simplest) things what
>should be done, i.e., is there some settings or other, which should be
>done before using that command, or could the reason be that the command
>ncdump doesn’t work in the version I am using.
>
>Can anybody help me with this problem, please?
>
>Best wishes,
>Mari Kauhaniemi


*************************************************
Shailendra Rai                                
K. Banerjee Centre of Atmospheric and Ocean Studies 
University of Allahabad
INDIA
Phone 09415649617
Telefax +915322460974 
Mail ID r_shail1977 at yahoo.co.in 
*************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20050909/867a3a7d/attachment.html 


More information about the gradsusr mailing list