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

Home » Public Forums » archive » Appending data to a dataset in an HDF5 file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Appending data to a dataset in an HDF5 file [message #52356] Wed, 31 January 2007 08:40 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
Hi,

The title says it all, really: I'm trying to create a dataset with an
unlimited dimension, so that I can append data later, preferably
without reading the previous data. Right now I'm not even getting to
that last refinement, just reading the data, then extending the array
and finally writing the extended array back to the file fails.

I create the dataspace with

dataspace_id = H5S_CREATE_SIMPLE([10,20,13], max_dim=[-1,20,13])

and I think this creates an unlimited first dimension (if I understand
the docs, which may be a tad optimistic). I can write a single data
set, but when writing the second (appended) set I'd expect that
writing something with dimensions [12,20,13] would be possible, but I
get an error:

% H5D_WRITE: Number of elements in the IDL variable must match that of
the HDF5 dataspace/datatype

What am I doing wrong here? Do I need to set the dimension itself to
[-1,20,13]? The docs don't seem to suggest that.

Help!

Maarten
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL job opportunities
Next Topic: image mapping

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

Current Time: Wed Oct 08 17:25:42 PDT 2025

Total time taken to generate the page: 0.00396 seconds