Re: IDL HDF interface is quite brittle-- how to reset after error? [message #71306] |
Tue, 08 June 2010 13:22 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ed Hyer writes:
> So, I've been browsing the pages here and at Coyote's and I think most
> people are aware of the issues with HDF in IDL, but for me it largely
> boils down to: "it works, when everything is done exactly right and
> nothing unexpected occurs."
>
> Thing is, when something does go wrong, the HDF interface gets into an
> inconsistent state, and the only way to fix it, as far as I can tell,
> is to exit IDL completely (I didn't try the '.RESET' commands, but you
> can't script those so it doesn't really apply anyway). So, even though
> I've embedded my HDF access in functions, if something goes wrong
> writing an HDF file, the process grinds to a halt and the next file
> will never be processed.
>
> Has anyone figured out a trick to fully reset the HDF interface so
> that a routine can move on to the next file?
Humm. You CATCH the errors and are deattaching from the
SD interface (or whatever you are using) and closing
the file, right? I can't imagine that not working. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|