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

Home » Public Forums » archive » Testing if HDF5 file is corrupt
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Testing if HDF5 file is corrupt [message #71191] Mon, 07 June 2010 08:38
rjp23 is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Batch ENVI Resize Data (Spatial/Spectral)
Next Topic: Re: Testing if HDF5 file is corrupt

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

Current Time: Wed Oct 08 19:26:10 PDT 2025

Total time taken to generate the page: 0.00466 seconds