[Nexus-developers] Missing attribute?
"V. Armando Solé"
sole at esrf.fr
Fri Jun 11 13:03:19 BST 2010
Hi,
At the very least I think the fact of not having that attribute is
inconsistent with the rest of groups associated to nexus classes having it
If the web site would not present it as a NeXus class (see
http://www.nexusformat.org/Design#NeXus_Classes) and just would talk
about the "root level" there would not be any inconsistency either.
Armando
freddie.akeroyd at stfc.ac.uk wrote:
> Hi,
>
> It's a little confusing, but NXroot is currently only a "real object" in the XML representation. A NeXus HDF4 file consisted of top level global attributes plus various groups - only groups could have a class in HDF4. The class "NXroot" was created to describe what these top level attributes were (NeXus_version etc). With XML files you cannot have a global attributes so in this case NXroot was explicitly written into the file as a "real group".
>
> If you wanted to know if an HDF5 files was a NeXus file, you could currently check for the "NeXus_version" attribute. For HDF5 it would be easy for the API to write an additional global attribute "nx_class" at the top level with the value "NXroot" - does anybody think this could cause any problems?
>
> Regards,
>
> Freddie
>
>
More information about the NeXus-developers
mailing list