GROUP “InputPointers” {
DATASET “ControlFileContents” {
DATATYPE H5T_STRING {
STRSIZE 30874;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
}
}
ive been trying to adapt the examples in hdf5/HDF5Examples/FORTRAN/H5T/h5ex_t_vlstring_F03.F90 at develop · HDFGroup/hdf5 · GitHub
but I’m getting errors when I adjust to a scalar value
dies here
CALL H5Sget_simple_extent_dims_f(space, dims, maxdims, hdferr)
and then get this from HDF_read
F5-DIAG: Error detected in HDF5 (1.8.20) thread 0:
#000: H5Dio.c line 223 in H5Dread(): can’t read data
major: Dataset
minor: Read failed
#001: H5Dio.c line 479 in H5D__read(): unable to set up type info
major: Dataset
minor: Unable to initialize object
#002: H5Dio.c line 1015 in H5D__typeinfo_init(): unable to convert between src and dest datatype
major: Dataset
minor: Feature is unsupported
#003: H5T.c line 4516 in H5T_path_find(): no appropriate function for conversion path
major: Datatype
minor: Unable to initialize object
CALL H5Sget_simple_extent_dims_f(space, dims, maxdims, hdferr)
ALLOCATE(rdata(1:dims(1)))
!
! Read the data.
!
f_ptr = C_LOC(rdata(1))
CALL h5dread_f(dset, H5T_STRING, f_ptr, hdferr)