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.
Hi everyone! 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! 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) o Command "ncdump -x" from the NetCdf4 library on Linux ,written in C o Command "ncks" from the NCO (NetCDF Operator) library using Cygwin on Windows (http://nco.sourceforge.net/ ) · Error Messages while retrieving the data: o On Linux "ncdump": § "segmentation fault" o On Linux "ncdump -x": § "ncdump: prim_type_name: bad type 32" o On Windows "ncks": § "nco_dfl_case_nc_type_err(): ERROR switch(nctype) statement fell through fo default case, which is illegal. Not handling the default case causes gc to emit warnings when cimpiling NCO with the NETCDF2_ONLY token (because nctype definition is braindead in netCDF2.x). Exiting... nco_err_exit(): ERR Short NCO-generated message (usually name of function that triggered error): nco_dfl_case_nc_type_err() nco_err_exit(): ERROR Error code is 0. This indicates an error occurred outside of the netCDF layer, i.e., in NCO code or in a system call. Nco_err_exit(): ERROR NCO will now exit with system call abort() 193 [sig] ncks 692 open_stackdumpfile: Dumping stack trace to ncks.exe.stackdump" · The compound "time" is defined as a NetCDF compound type consisting of two int64 components: seconds and microseconds. it is read-in from a numpy compound type as described on( http://netcdf4-python.googlecode.com/svn/trunk/docs/netCDF4-module.html under 9) ) Please consider the environment before printing this email! ________________________________ ***DISCLAIMER*** The information and any attachments (herein referred to as 'document') transmitted is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged information. If you are not the intended recipient of this document, you are hereby notified that any dissemination, distribution, copying, other use of, or taking any action in reliance upon this document by persons or entities other than the intended recipient is illegal and prohibited. If you have received this in error, please immediately notify the sender, permanently delete the original from any computer and/or system, and destroy any printout of the 'document'. We thank you for your co-operation in this matter. Pilatus Aircraft Ltd.
netcdfgroup
archives: