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
Re: Can't exit DEFINE mode in netCDF File [message #68258 is a reply to message #68119] Wed, 07 October 2009 09:24 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
dcleon@gmail.com writes:

> I've run into this problem several times. I think with the ncdf_
> routines that if the type on any attribute or variable fails to match
> the declared type, that you're going to get an error when you close
> the file. Seems like the ncdf routines should give you the error when
> you define the attribute/variable not down the road when you go to
> close the file. Anyway, the bottom line is check types very carefully
> when writing NetCDF files.

It is not that the attribute data type has to match its
declared type, it is that the attribute type has to
match the data type of the variable it is being
associated with. So there is another layer of
obfuscation in there. And since this completely
undocumented error can occur in another part of the
code entirely from where the actual error shows up,
it is basically impossible to debug. How the solution
was discovered is beyond my understanding.

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (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 19:21:12 PDT 2025

Total time taken to generate the page: 0.00551 seconds