Reading NWB Files

This section provides an introduction on how to read NWB files in Python using PyNWB and Matlab using MatNWB. If you are interested in converting your data to NWB, then please see the User Guide as well as for more in-depth tutorials visit the PyNWB and MatNWB tutorials and documentation.

Reading With PyNWB

You can!

Reading with MatNWB

For most files, MatNWB only requires the nwbRead call:

nwb = nwbRead('path/to/filename.nwb');

This call will read the file, create the necessary NWB schema class files, as well as any extension schemata that is needed for the file itself. This is because both PyNWB and MatNWB embed a copy of the schema environment into the NWB file when it is written.

The returned object above is an NwbFile which serves as the root object with which you can use to browse the contents of the file. More detail about the NwbFile class can be found here: Using the NwbFile Class.