Table Of Contents

Previous topic

1.6. Frequently Asked Questions

Next topic

2.1.1. Example NeXus programs using NAPI

This Page

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 that use the NAPI

Various examples are given that show how to read and write NeXus data files using the NAPI: NeXus Application Programmer Interface (frozen).

2.2. Code Examples that do not use the NAPI

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).