IDL HDF interface is quite brittle-- how to reset after error? [message #71308] |
Tue, 08 June 2010 12:21 |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
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?
--Edward H.
|
|
|