Nexus validation shows issues
nxvalidate -o -b -u -d -t -r ~/tmp/icat.h5
message="Validating file attributes"
... sev=debug dataFile=/users/denolf/tmp/icat.h5
message="Missing recommended global file_name attribute"
... sev=warnopt dataPath=/ dataFile=/users/denolf/tmp/icat.h5
message="Missing recommended global file_time attribute"
... sev=warnopt dataPath=/ dataFile=/users/denolf/tmp/icat.h5
message="Missing optional global HDF5_Version attribute"
... sev=warnopt dataPath=/ dataFile=/users/denolf/tmp/icat.h5
definition=string.nxdl.xml message="Validating /entryname against string.nxdl.xml"
... sev=debug dataPath=/entryname dataFile=/users/denolf/tmp/icat.h5
definition=string.nxdl.xml message="Failed to load application definition"
... sev=fatal dataPath=/entryname dataFile=/users/denolf/tmp/icat.h5
4 errors and 0 warnings found when validating /users/denolf/tmp/icat.h5
This is weird:
<group NX_class="NXsubentry" groupName="WAXS">
<definition ESRF_description="Technique used to collect this dataset" NAPItype="NX_CHAR">${xrf_definition}</definition>
</group>
In Nexus "definition" refers to the NeXus application definition. There is only a fixed list of definitions.
So these should probably be removed or renamed?
<definition ESRF_description="Techniques used to collect this dataset" NAPItype="NX_CHAR">${definition}</definition>
<group NX_class="NXsubentry" groupName="SAXS">
<definition ESRF_description="Technique used to collect this dataset" NAPItype="NX_CHAR">${saxs_definition}</definition>
<group NX_class="NXsubentry" groupName="WAXS">
<definition ESRF_description="Technique used to collect this dataset" NAPItype="NX_CHAR">${xrf_definition}</definition>