Konrad, Our Group asked me to follow up the issue you reported. I understand that you want to declare a dimension size to be zero and you won't write any data to it. A data space with zero dimension size is totally empty. It only shows the number (or rank) of the dimensions. Is this correct?
Thanks. Ray On Mar 30, 2011, at 10:23 AM, Konrad Hinsen wrote: > On 30 Mar, 2011, at 14:50 , Quincey Koziol wrote: > >>> An axis length 0 conveys information (especially for vectors). >> >> Yes, it does and we already have an issue to correct this in our bug >> tracker. I'll see if we can bump up the priority for the 1.8.7 release. > > That would be great :-) > >> One possibility as a workaround in the meanwhile may be to use the >> H5S_NULL dataspace class, to indicate that an attribute or dataset has no >> elements. > > In principle, this would be a solution for the majority of my use cases, the > exception being those where only one of many dimensions of an array has zero > length and the length of the others do matter. But the main practical problem > I see with H5S_NULL is that popular high-level interfaces to HDF5 (the Java > object layer, h5py and PyTables for Python) don't provide access to it. I > know that I should complain to the authors of those interfaces... > > Konrad. > -- > --------------------------------------------------------------------- > Konrad Hinsen > Centre de Biophysique Moléculaire, CNRS Orléans > Synchrotron Soleil - Division Expériences > Saint Aubin - BP 48 > 91192 Gif sur Yvette Cedex, France > Tel. +33-1 69 35 97 15 > E-Mail: research AT khinsen DOT fastmail DOT net > --------------------------------------------------------------------- > > > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
