comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Can't exit DEFINE mode in netCDF File
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Can't exit DEFINE mode in netCDF File [message #68119] Tue, 06 October 2009 13:42 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: interpolation of irregular satellite data
Next Topic: Re: IDLDE and java crashes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:15:41 PDT 2025

Total time taken to generate the page: 0.00457 seconds