ncdump
Lee Byerle
labyerle at MET.UTAH.EDU
Wed Feb 7 11:25:07 EST 2007
Kristian,
You may use unix to get netcdf data to ascii (w/o ",", ";" etc):
for example:
ncdump -v u10 myfile.nc > u10_din_dump
#remove extraneous characters
sed 's/,/ /g' u10_din_dump > temp1.out
sed 's/;/ /g' temp1.out > temp2.out
sed 's/}/ /g' temp2.out > temp3.out
#Strip top lines of header
tail +94 temp3.out > new_u10.out
new_u10.out is ascii file.
Lee
> Dear GrADS-ers,
>
> I am wandering how to dump .nc files in a table-like (row-column)
> ascii format e.g. lat-lon for a 2D variable in one time instant? I
> tried to use ncdump, but its output looks somewhat different. Of
> course, I could write a program to change the format of the ncdump
> output, but is it the only way to go?
>
> Many thanks.
>
> Kristian
>
> _________________________________
> Kristian Horvath email:
> horvath at cirus.dhz.hr
> Graduate Research Associate tel:+385-1-4565752
> Meteorological and Hydrological Service www:
> http://www.dhmz.htnet.hr/index.php
> Gric 3, 10000 Zagreb, Croatia personal www:
> http://radar.dhz.hr/~horvath
>
More information about the gradsusr
mailing list