Simple examples of reading and writing NeXus data files are provided in the NeXus Introduction chapter and also in the NAPI: NeXus Application Programmer Interface (frozen) chapter. Here, three examples are provided showing how to write a NeXus data file without using the NAPI.
Various examples are given that show how to read and write NeXus data files using the NAPI: NeXus Application Programmer Interface (frozen).
Sometimes, for whatever reason, it is necessary to write or read NeXus files without using the routines provided by the NAPI: NeXus Application Programmer Interface (frozen). Each example in this section is written to support just one of the low-level file formats supported by NeXus (HDF4, HDF5, or XML).