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 Kevin, > In IDL I am getting a (NC_ERROR=-31) error code, that code is not > listed in the list of error codes. > > Any suggestions? That indicates a system error (netcdf.h has "#define NC_SYSERR (-31)"), so it is not a netCDF error. Typically when a program gets that error code returned from a netCDF function call, it should print the corresponding system error message for the system error code in the global "errno" variable, such as "No such file or directory", "I/O error", "Permission denied", "File too large", "No space left on device", or something similar. If you call the nc_strerror with the error code, it will return the appropriate error message, even if it's a system error. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: REX-918831 Department: Support netCDF Priority: Normal Status: Closed