Can't exit DEFINE mode in netCDF File [message #68119] |
Tue, 06 October 2009 13:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I am writing my first netCDF file in IDL and I am practically
copying the code out of Ken Bowman's book. I open a file:
fID = NCDF_CREATE(filename, /CLOBBER)
Then, I define several global attributes, two dimensions,
and two variables. I also define a couple of attributes
of the variables. All in that order.
Then, I attempt to get out of DEFINE mode and into DATA
mode, so I can write the actual variables.
NCDF_CONTROL, fID, /ENDEF
But at this point I get the following error message:
% NCDF_CONTROL: Attempt to take the file out of
define mode (ENDEF) failed. (NC_ERROR=-45)
% Execution halted at: TIMESERIES::CREATE_CLIMATOLOGY 2589
Does anyone have ANY idea what this might be about?
Thanks,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|