HDF5 "compounds_as_attributes.h5" { GROUP "/" { DATASET "pressure" { DATATYPE H5T_IEEE_F64LE DATASPACE SIMPLE { ( 101, 20, 10 ) / ( 101, 20, 10 ) } ATTRIBUTE "grid" { DATATYPE H5T_COMPOUND { H5T_VLEN { H5T_IEEE_F64LE} "values"; H5T_STRING { STRSIZE 100; STRPAD H5T_STR_NULLPAD; CSET H5T_CSET_ASCII; CTYPE H5T_C_S1; } "unit"; } DATASPACE SIMPLE { ( 2 ) / ( 2 ) } } ATTRIBUTE "name" { DATATYPE H5T_STRING { STRSIZE H5T_VARIABLE; STRPAD H5T_STR_NULLTERM; CSET H5T_CSET_UTF8; CTYPE H5T_C_S1; } DATASPACE SCALAR } ATTRIBUTE "unit" { DATATYPE H5T_STRING { STRSIZE H5T_VARIABLE; STRPAD H5T_STR_NULLTERM; CSET H5T_CSET_UTF8; CTYPE H5T_C_S1; } DATASPACE SCALAR } } } }