[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20040816: netCDF exiting when att not found

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.


  • Subject: Re: 20040816: netCDF exiting when att not found
  • Date: Fri, 20 Aug 2004 15:11:53 -0600

>To: address@hidden
>From: Chris Webster <address@hidden>
>Subject: netCDF exiting when att not found
>Organization: NCAR/ACD
>Keywords: 200408162316.i7GNGsaW014607 netCDF

You wrote:
> > You must be using a netCDF version 2 interface if it's exiting on
> > error.  The default for netCDF-3 interfaces is to just return an error
> > code for any error, not to exit.
> 
> It is using the C++ interface.....
> 
> The ncopts fixes the problem.

OK, but the official C++ way to do this is by using the auxiliary
class NcError:

  http://my.unidata.ucar.edu/content/software/netcdf/cxxdoc.html#SEC18

--Russ