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