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.
Matt, Steve wrote: > Your program halts because the default error-handling action of the > netCDF library is to abort on error. ... Actually aborting on error was the default error-handling action of the old netCDF-2 interface, on which netCDFPerl is based. The default error-handling action of the current netCDF-3 interface is to silently return an error indication. > ... To override, call the following > first: > > NetCDF::ncopts(NetCDF::VERBOSE); > > This will cause the netCDF library to print a message to standard error > and then continue. ... or, since you probably don't want to have a message printed, call it with a zero argument to suppress both the printing of messages and the fatality of errors. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu