I'm trying to write using selections in Hdf5DotNet 1.8.8 x86-64. The two writes below should be equivalent, but the first one succeeds and the second one fails. Why?
(If they are not equivalent, how can I write the equivalent statement with selections?)
Dim allspace As H5DataSpaceId = New H5DataSpaceId(H5S.H5SType.ALL)
Dim DA As H5PropertyListId = H5P.create(H5P.PropertyListClass.DATASET_ACCESS)
H5D.write(d, double_t, data)
H5D.write(d, double_t, allspace, allspace, DA, data)
Karl, attached is an IronPython script that demonstrates what
I believe you are trying achieve (for a 2d 32-bit integer array).
The property list you're using is not quite what you want.
The minor difference is:
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of Karl Petersen
Sent: Sunday, January 22, 2012 3:40 PM
To: 'hdf-forum@hdfgroup.org'
Subject: [Hdf-forum] Selections in Hdf5DotNet
I'm trying to write using selections in Hdf5DotNet 1.8.8 x86-64. The two
writes below should be equivalent, but the first one succeeds and the second
one fails. Why?
(If they are not equivalent, how can I write the equivalent statement with
selections?)
Dim allspace As H5DataSpaceId = New H5DataSpaceId(H5S.H5SType.ALL) Dim DA As
H5PropertyListId = H5P.create(H5P.PropertyListClass.DATASET_ACCESS)
H5D.write(d, double_t, data)
H5D.write(d, double_t, allspace, allspace, DA, data)
Thank you Gerd. H5P_DEFAULT was exactly what I need. Oh I had some trouble writing strings, but I think writing them as char[] will be fine for my application at the moment. Much happiness.
Karl, attached is an IronPython script that demonstrates what I believe you are trying achieve (for a 2d 32-bit integer array).
The property list you're using is not quite what you want.
The minor difference is:
I'm trying to write using selections in Hdf5DotNet 1.8.8 x86-64. The two writes below should be equivalent, but the first one succeeds and the second one fails. Why?
(If they are not equivalent, how can I write the equivalent statement with
selections?)
Dim allspace As H5DataSpaceId = New H5DataSpaceId(H5S.H5SType.ALL) Dim DA As H5PropertyListId = H5P.create(H5P.PropertyListClass.DATASET_ACCESS)
H5D.write(d, double_t, data)
H5D.write(d, double_t, allspace, allspace, DA, data)