[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #GCD-783086]: Need some help when opening a netcdf file via
- To: illill920@xxxxxxxxxxxx
- Subject: [netCDF #GCD-783086]: Need some help when opening a netcdf file via
- From: "Unidata netCDF Support" <support-netcdf@xxxxxxxxxxxxxxxx>
- Date: Fri, 04 Apr 2008 12:54:21 -0600
- Delivered-to: support-netcdf@unidata.ucar.edu by laraine.unidata.ucar.edu (Postfix) with ESMTP id 68B88CB187; Fri, 4 Apr 2008 12:54:21 -0600 (MDT) id 482F8D5118; Fri, 4 Apr 2008 12:54:21 -0600 (MDT)
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