mne_nirs.io.write_raw_snirf#

mne_nirs.io.write_raw_snirf(raw, fname, add_montage=False)[source]#

Write continuous wave data to disk in SNIRF format.

Writes the data from a raw object to a SNIRF file using SNIRF specification version 1.1. The data can be either raw continuous wave amplitude, optical density or haemoglobin data. The data is written to the SNIRF file as a single data block and should pass the validation provided by the official snirf validator.

The MNE SNIRF reader requires that the data file contains either two wavelengths or both hbo and hbr data. This function can export data with just one wavelength or just hbo or hbr data. However, until modifications are made to the SNIRF reader, the exported data will not be readable by the MNE SNIRF reader.

Parameters:
rawinstance of Raw

Data to write to file. Can be either continuous wave (fnirs_cw_amplitude) or processed (fnirs_od, ‘hbo’, ‘hbr’).

fnamestr

Path to the SNIRF data file.

add_montagebool

Should the montage be added as landmarks to facilitate compatibility with AtlasViewer.

Examples using mne_nirs.io.write_raw_snirf#

Read Gowerlabs LUMO data

Read Gowerlabs LUMO data

SNIRF Support in MNE

SNIRF Support in MNE