[MINC-development] [michael.hanke at gmail.com: Re: Bug#585676: minc-tools: Cannot use cmdline tools (file not found)]

Andrew Janke a.janke at gmail.com
Tue Dec 13 21:37:03 EST 2011


On 14 December 2011 12:23, Andrew Janke <a.janke at gmail.com> wrote:
> Seems that there is some MINC2 specific code in there but it doesn't
> appear to test if a HDF file can be opened,  just accessed. If you
> add:
>
>   header_only = 0
>
> to about line 266, everything works nicely.
>
> So the question now is should we support this behaviour or just revert
> to uncompressing the whole thing? I say "support" because users should
> be using HDF's internal compression scheme not external zipping.

And even more digging..  The call used in MINC to "validate" a HDF
file is H5Fis_hdf5():

   https://github.com/andrewjanke/minc/blob/master/libsrc/hdf_convenience.c#L2371

This doesn't do what we'd like, despite appearances:

   http://davis.lbl.gov/Manuals/HDF5-1.4.3/RM_H5F.html#File-IsHDF5

All it does is search for the HDF5 signature in a file.  From digging
through the HDF5 API documentation I can find no function to do what
we want/need. Meaning the "best" fix at this stage is to just unzip
the whole thing.


a


More information about the MINC-development mailing list