Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[netCDF #GCD-783086]: Need some help when opening a netcdf file via



Hi,

Your English is great, much better than my Chinese :-).

What is the value returned by nc_open when it fails?  In other
words, what is the value of res

   res = nc_open(.,write,.); // randomly fail

when it is not 0?  Each error return value has an error message
associated with it that you can look up in netcdf.h, or you can
call nc_strerror(res), as in

   if (res != 0) {
      printf("%s\n", nc_strerror(res));
   }

--Russ



Russ Rew                                         UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: GCD-783086
Department: Support netCDF
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690