octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35227] HDF5 h5ex_t_vlstring.h5 can't be loade


From: anonymous
Subject: [Octave-bug-tracker] [bug #35227] HDF5 h5ex_t_vlstring.h5 can't be loaded
Date: Tue, 03 Jan 2012 14:32:54 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0

URL:
  <http://savannah.gnu.org/bugs/?35227>

                 Summary: HDF5 h5ex_t_vlstring.h5 can't be loaded
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 03 Jan 2012 02:32:54 PM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Erich
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I am very interested in loading 
variable string arrays in octave,
but loading h5ex_t_vlstring.h5
from
 
http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-
c.html

fails withs

load h5ex_t_vlstring.h5
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
  #000: /home/hdftest/snapshots-bin-hdf5_1_8_8/current/src/H5Dio.c line 174 in
H5Dread(): can't read data
    major: Dataset
    minor: Read failed
  #001: /home/hdftest/snapshots-bin-hdf5_1_8_8/current/src/H5Dio.c line 337 in
H5D_read(): unable to set up type info
    major: Dataset
    minor: Unable to initialize object

the error message is in reality much longer.
The file consists of 

HDF5 "h5ex_t_vlstring.h5" {
GROUP "/" {
   DATASET "DS1" {
      DATATYPE  H5T_STRING {
            STRSIZE H5T_VARIABLE;
            STRPAD H5T_STR_SPACEPAD;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
      DATASPACE  SIMPLE { ( 4 ) / ( 4 ) }
      DATA {
      (0): "Parting", "is such", "sweet", "sorrow."
      }
   }
}
}

What can I do to load a h5 file with a vector of 
variable length strings.

I want to load a vector of 300 000 strings most of fixed
length butfixed length is not guaranteed. 

Which types of HDF5-strings are allowed are supported in octave?
 at least 

load h5ex_t_string.h5

produces  DS1
DS1 =

Partin
is suc
sweets
sorrow

this is also not completly correct! the last column is lost.
See the output from Matlab
>> s=hdf5read('/home/erich/down/h5ex_t_vlstring.h5','DS1')
        hdf5.h5string: 4-by-1


>> s(1).Data
ans=Parting
>> s(2).Data
ans =
is such
>> s(3).Data
ans =
sweet
>> s(4).Data
ans =
sorrow.


Ciau Erich














    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35227>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]