Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: reading HDF5 dataset subset
Date: Mon, 2 Nov 2009 22:15:21 +0000 (UTC)
Organization: NOAA
Lines: 10
Message-ID: <hcnllp$lv2$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257200121 22498 172.30.248.37 (2 Nov 2009 22:15:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Nov 2009 22:15:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1420592
Xref: news.mathworks.com comp.soft-sys.matlab:581919


Using the low-level HDF5 functions in Matlab, I have generated some HDF5 files with several datasets that are each 512x512x1410.  I need to be able to read subsets of these different layers.  Looks like hdf5read does not have subsetting capabilities like hdfread, so I am guessing I need to use low-level functions such as H5D.read.  How do I translate something like the following high level hdfread call into those HDF5 low-level functions?:

data=hdfread('filename','/dataset_name','Index',{[start],[stride],[size]});
e.g.
sst=hdfread(file,'/WeeklySST','Index',{[1 1 999],[1 1 1],[512 512 1]});

(Chunk size is set to 512x512x1, but I need to read across those boundaries as well.)

Thanks very much,
Tess