Path: news.mathworks.com!not-for-mail
From: "Ashish Uthama" <first.last@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: HDF5 Hight Level API
Date: Mon, 22 Jun 2009 09:31:27 -0400
Organization: TMW
Lines: 57
Message-ID: <op.uvxg6pc7a5ziv5@uthamaa.dhcp.mathworks.com>
References: <gubrmt$g57$1@fred.mathworks.com>
 <op.utvykoyza5ziv5@uthamaa.dhcp.mathworks.com>
 <h1j2b9$apn$1@fred.mathworks.com>
NNTP-Posting-Host: uthamaa.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1245677487 11761 172.31.57.126 (22 Jun 2009 13:31:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Jun 2009 13:31:27 +0000 (UTC)
User-Agent: Opera Mail/9.63 (Win32)
Xref: news.mathworks.com comp.soft-sys.matlab:549480


On Sat, 20 Jun 2009 12:22:01 -0400, meng long <menglong6518@yeah.net>  
wrote:

> "Ashish Uthama" <first.last@mathworks.com> wrote in message  
> <op.utvykoyza5ziv5@uthamaa.dhcp.mathworks.com>...
>> On Tue, 12 May 2009 08:57:01 -0400, meng long <menglong6518@yeah.net>
>> wrote:
>>
>> > I want to know when "HDF5 Hight Level API"  is available in Matlab.
>>
>>
>> Meng,
>>
>> Could you tell more?
>>
>> I guess I would call HDF5READ and HDF5WRITE high level, not sure what  
>> you
>> are looking for.
>
>  sDset.Location = '/Qut/Day/Sh/Idx';
>   sDset.Name = '123456';
>   hdf5write('fTest.H5',sDset,sObj,'writemode','overwrite');
>
> The 'hdf5write', as above, overwrite 'fTest.H5', not the dataset  
> '123456' as expected.
> How to overwrite a dataset?
>
> I hope that Matlab surports 'HDF5' deeply and quickly, surports 'H5TB'  
> etc., since 'Matlab Hight Level Functions for HDF5' are not enought in  
> Industry-Application, and 'Malab Low Level Functions for HDF5' are too  
> slow to deal with compound type in Industry-Application of a large of  
> tables.

Meng,

Yes, as the document mentions, 'overwrite' will overwrite the entire  
contents of the file.

To overwrite a specific dataset, just write to it again:

>> hdf5write('myfile.h5', '/dataset1', uint8(5))
>> hdf5read('myfile.h5','/dataset1')

ans =

     5

>> hdf5write('myfile.h5', '/dataset1', uint8(10))
>> hdf5read('myfile.h5','/dataset1')

ans =

    10


Could you please elaborate on your use of compound type and tables?