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. Here, three examples are provided showing how to write a NeXus data file without using the NAPI.
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.