NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] File still in define mode after enddef called

Hello,

I Have an application that writes netCDF files. In certain circumstances it 
gets a -39 error when calling nc_put_var_short( ncid, varid, data ) ; even 
though an execution trace shows that nc_enddef( ncid ) ;was previously called. 
What's odd is that for some types of variables, the application shows exactly 
the same trace (including calling enddef() before put_var()) and it works. Of 
course, I'm 99% certain the error is in my code, but I'm wondering if there are 
specific kinds of errors that could cause this problem? Is there anyway to 
check and see if a file is currently in 'define mode'?

Thanks,
James
--
James Gallagher
jhrg at mac.com





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