This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi, > Recently I created a program to read .csv files into NetCDF4 files. The code > did not show any error-messages while compiling and the NetCDF4 files have > always been created. However, if I try to retrieve the data, I get a > "segmentation fault" due to the built-in compound dimension/variable "time". > Does anybody know how I can fix this? Thx! Could you make available a copy of the netCDF-4 file that has this problem? That way we could see if we can duplicate the problem with the current version of ncdump, diagnose it, and fix it. > Further information: > > · The program was written on Python 3.2 using Python interface to > netCDF version 4 library > (http://netcdf4-python.googlecode.com/svn/trunk/docs/netCDF4-module.html ) > > · To retrieve the data I used: > > o Command "ncdump" from the NetCdf4 library on Linux ,written in C > (http://linux.die.net/man/1/ncdump) What version of ncdump? To find out, look at the last line of output from ncdump -version. > o Command "ncdump -x" from the NetCdf4 library on Linux ,written in C The documentation for the -x option says it only works for netCDF classic files. It hasn't yet been upgraded to handle the netCDF-4 data model, including any user-defined types. > o Command "ncks" from the NCO (NetCDF Operator) library using Cygwin on > Windows (http://nco.sourceforge.net/ ) The documantation for nco says it hasn't been fully upgraded to handle the netCDF-4 data model yet, including user-defined types. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: ZRX-231843 Department: Support netCDF Priority: Normal Status: Closed