Home »
Public Forums »
archive »
Testing if HDF5 file is corrupt
Testing if HDF5 file is corrupt [message #71191] |
Mon, 07 June 2010 08:38 |
rjp23
Messages: 97 Registered: June 2010
|
Member |
|
|
I'm dealing with a large amount of satellite data in HDF5 format.
I use the h5_parse command to read the data in and this all works fine
apart from in a few instances one of the files seems to be corrupt and
I get:
IDL> test=h5_parse('examplefilename10000', /read_data)
% Compiled module: H5_PARSE.
% H5F_OPEN: unable to open file: Object Name:"examplefilename10000"
% Error occurred at: H5_PARSE 553 /usr/local/itt/idl70/lib/
h5_parse.pro
% $MAIN$
I tried using H5F_IS_HDF5 but this returns 1 for all the files,
regardless of the above. Is there another way to test that the file is
readable by h5_parse?
My code processes of lots of files in a batch and if the file can't
be opened by h5_parse, I just want to skip that file.
Cheers
|
|
|
Current Time: Wed Oct 08 19:37:44 PDT 2025
Total time taken to generate the page: 0.00625 seconds