Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[netcdfgroup] segmentation fault using ncdump

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 fault

Any 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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690