This problem is seen in the test2 files.
test2_layout.xml contains the following lines:
<dataset name="aequatorial_angle" source="ndattribute" ndattribute="sa">
<attribute name="units" source="constant" value="degrees" type="string" />
</dataset>
However, the HDF5 file contains the following (this is with recent changes to "automatic" attributes in the hdf5-bugfix branch)
DATASET "aequatorial_angle" {
DATATYPE H5T_IEEE_F64LE
DATASPACE SIMPLE { ( 5 ) / ( 5 ) }
DATA {
(0): 0.001, 0, 0, 0, 0
}
ATTRIBUTE "NDAttrDescription" {
DATATYPE H5T_STRING {
STRSIZE 34;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
DATA {
(0): "sample azimuthal rotation, degrees"
}
}
ATTRIBUTE "NDAttrName" {
DATATYPE H5T_STRING {
STRSIZE 2;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
DATA {
(0): "sa"
}
}
ATTRIBUTE "NDAttrSource" {
DATATYPE H5T_STRING {
STRSIZE 8;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
DATA {
(0): "ACQ_TIME"
}
}
ATTRIBUTE "NDAttrSourceType" {
DATATYPE H5T_STRING {
STRSIZE 17;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
DATA {
(0): "NDAttrSourceParam"
}
}
}
DATASET "thickness" {
Note that it contains the "automatic" attributes" like NDAttrDescription, but it does not contain the "units" attribute requested in the test2_layout.xml file.
This problem is seen in the test2 files.
test2_layout.xml contains the following lines:
However, the HDF5 file contains the following (this is with recent changes to "automatic" attributes in the hdf5-bugfix branch)
Note that it contains the "automatic" attributes" like NDAttrDescription, but it does not contain the "units" attribute requested in the test2_layout.xml file.