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

Home » Public Forums » archive » HDF_SD_START: Invalid HDF file or filename: problem related to network issues
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
HDF_SD_START: Invalid HDF file or filename: problem related to network issues [message #86278] Tue, 22 October 2013 11:06 Go to previous message
Robert Levy is currently offline  Robert Levy
Messages: 1
Registered: October 2013
Junior Member
Hi all,
I am a group newbie, so i apologize if a solution exists but I didn't find.

Anyway, I am running a giant script to read thousands of MODIS HDF data files, which the files are located on a LVES mount (data are virtually mounted through a network).

So the problem seems to be that there are occasional network "blips" that happen. For example, I run these command:

1) determine that the file exists and is a proper HDF file
fileHandle = HDF_OPEN(Filename, /READ )
IF fileHandle LT 1 THEN BEGIN
errorLevel = 1
Return, errorLevel
ENDIF
HDF_CLOSE, fileHandle


2) Then I go and actually open the file:

hdfid = HDF_SD_START(Filename, /READ)


This is where the code bombs and gives me:
HDF_SD_START: Invalid HDF file or filename

and stops my whole code. This file exists and is a perfectly fine file.


Note that this may happen after the code is running for days (opening and closing files). If I try a second later, it works fine. Is there any way to have HDF_SD_START exit gracefully, and return an error code, rather than stop with error message? Then I could know it is a network problem and try again a few seconds later.

Thanks for any ideas.

-Rob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 8 byte to double?
Next Topic: Interesting results when using IMAGE function

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

Current Time: Wed Oct 08 11:54:10 PDT 2025

Total time taken to generate the page: 0.00193 seconds