NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello group,Thank you to all who sent comments regarding extracting a grid point time series from a netcdf file. I used ncks to extract a single time series. But now I would like to convert it to an ASCII file. So I try using ncdump, but get a segmentation fault.
Here are the commands I used for the above:[root@localhost climate_data]# ncks -H -d lat,48.218750 -d lon,-120.96880 hadcm_T.nc test_out.nc
[root@localhost climate_data]# ncdump -h test_out.nc netcdf test_out { dimensions: time = 1212 ; lat = 1 ; lon = 1 ; variables: float Tds(time, lat, lon) ; Tds:missing_value = -999.99f ; float lat(lat) ; lat:units = "degrees_north" ; float lon(lon) ; lon:units = "degrees_east" ; float time(time) ; time:units = "days since 2000-01-01" ; // global attributes::history = "Mon Nov 24 11:40:01 2008: ncks -H -d lat,48.218750 -d lon,-120.96880 hadcm_T.nc test_out.nc" ;
} [root@localhost climate_data]# ncdump -v Tds, test_out.nc > test.cdl Segmentation faultAny ideas what the problem is? FYI, I am pretty sure the data is intact since I was able to look at the time series with ncview.
Rich
netcdfgroup
archives: