Reading/writing an array of strings #4049
Replies: 2 comments
-
Thank you for the feedback! In general, it would be good to use the most recent release, in case features or issues are already covered. Regarding to array of strings, ADIOS variable supports a scalar string, but not an array of strings like HDF5 does. (https://adios2.readthedocs.io/en/latest/components/components.html#variable) ADIOS attributes, however, can take in an array of strings. It looks like h5py uses variable length string instead of a basic string. I will add a pull request in ADIOS to read in variable length string from HDF5. I have not used the fortran interface for awhile. Will give it a try tomorrow and let you know. |
Beta Was this translation helpful? Give feedback.
-
Some update:
Happy to answer questions. |
Beta Was this translation helpful? Give feedback.
-
I am trying to read an array of strings from an HDF5 file. I've tried both fixed/variable size strings using the following Python code
Using h5dump indicates this file is valid
however bpls rejects the variable
I was going to try writing the file instead from ADIOS2/Fortran so I could inspect and compare the output from
h5dump
, however when I try to use theadios2_type_string_array
which I think I need it is unavailable to the compiler. Additionally the generic resolution fails foradios2_put
passing a variable of typeI am using adios v2.8.3, however I think the
adios2_type_string_array
is also not available in the latest Fortran bindings when I searched on Github.Beta Was this translation helpful? Give feedback.
All reactions