# NeXus links have two parts in HDF5 files. # The dataset is created in some group. # A "target" attribute is added to indicate the HDF5 path to this dataset. ATTRIBUTE "target" { DATATYPE H5T_STRING { STRSIZE 21; STRPAD H5T_STR_NULLPAD; CSET H5T_CSET_ASCII; CTYPE H5T_C_S1; } DATASPACE SCALAR DATA { (0): "/entry/data/two_theta" } } # then, the hard link is created that refers to the original dataset # (Since the name is "two_theta" in this example, it is understood that # this link is created in a different HDF5 group than "/entry/data".) DATASET "two_theta" { HARDLINK "/entry/data/two_theta" }