2. Examples of writing and reading NeXus data files¶
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.
2.1. Code Examples in Various Languages¶
Each example in this section demonstrates either reading NeXus files in one of the supported storage containers (HDF5 or one of the legacy container formats: HDF4 or XML) or writing compliant NeXus files in the HDF5 storage containers. Please be aware that not all exmples are up to date with the latest format recommendations.
2.2. Code Examples that use the NeXus API (NAPI)¶
These examples illustrate the use of the NAPI NAPI: NeXus Application Programmer Interface (frozen). Please refer to the linked section in the manual for the status of NAPI.
2.3. Code that reads NeXus data files¶
The number of tools that read NeXus data files, either for general use or to read a specific application definition, is growing. In the section NeXus Utilities, we describe many applications and software packages that can read, write, browse, and use NeXus data files. Examples of code (mostly from the NeXus community) that read NeXus data are listed in section Language APIs for NeXus and HDF5.
The NIAC welcomes your continued contributions to this documentation.