Re: [netcdfgroup] What does nc_open returning 24 mean?

  • To: "Dave Allured" <dave.allured@xxxxxxxx>
  • Subject: Re: [netcdfgroup] What does nc_open returning 24 mean?
  • From: "Nathaniel Nutter" <iam@xxxxxxxxxxx>
  • Date: Thu, 25 Oct 2007 15:21:54 -0700
The error code 24 is a POSIX error code that is happening at a lower
level than NetCDF, that is all I can say, i.e. the operating system is
generating an error not NetCDF.

On 10/23/07, Dave Allured <dave.allured@xxxxxxxx> wrote:
> All,
>
> According to the docs for the Netcdf C interface, Nate's error code
> for too many files open should be -34, not 24.  24 is not listed.
>
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-c/Error-Codes.html
>
> Does anyone know the reason for this discrepancy?  I ask for
> reference only.  Thanks.
>
> --Dave A.
> CU/CIRES Climate Diagnostics Center (CDC)
> NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
> http://www.cdc.noaa.gov
>
> Nathaniel Nutter wrote:
> > OK, for those who encounter this later it is because despite the files
> > being open read only they do need to be closed. Thanks to: giuliani,
> > Hannes, and Timothy for point this out to me so quickly. :-)
> >
> > I'm brand new at this stuff so I appreciate the help immensely!
> >
> > On 10/22/07, Nathaniel Nutter <iam@xxxxxxxxxxx> wrote:
> >> I'm having a hard time searching for this on the mailing list archive
> >> and Google due to the unhelpfully constraining nature of a number and
> >> 'return'.
> >>
> >> I am running a program that reads in data every 'month' and it goes
> >> through many years and then mysteriously returns non-zero after
> >> opening the same files dozens of times.
> >>
> >> Every time prior (again dozens) it returns zero. The file is being
> >> opened read-only, no changes are being made to it.
> >>
> >> Debugging info from my program:
> >> nc_open status = 24
> >> filename = dat/ts.nc
> >>
> >> Nate Nutter
> >> iam@xxxxxxxxxxx
> >>
> > _______________________________________________
> > netcdfgroup mailing list
> > netcdfgroup@xxxxxxxxxxxxxxxx
> > For list information or to unsubscribe,  visit: 
> > http://www.unidata.ucar.edu/mailing_lists/
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/
>


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: