BIDSLIB::AbstractFormatReader implementation for European Data Format (EDF / EDF+) files. More...


Go to the source code of this file.
Classes | |
| struct | BIDSLIB::EDFChannelInfo |
| Channel-level metadata from the EDF header. More... | |
| class | BIDSLIB::EDFReader |
| The EDFReader reads European Data Format (EDF/EDF+) files and exposes them through the AbstractFormatReader interface. More... | |
Namespaces | |
| namespace | BIDSLIB |
| BIDS dataset reading, writing, path construction, and sidecar metadata handling for iEEG/EEG/MEG. | |
BIDSLIB::AbstractFormatReader implementation for European Data Format (EDF / EDF+) files.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
EDF stores a recording as a fixed-size ASCII header followed by a stream of duration_seconds-long ``data records''; inside each record the channels appear in order, with each channel contributing samples_per_record little-endian int16 samples. The header additionally lists per-channel physical / digital min / max which BIDSLIB::EDFReader uses to derive the affine calibration that converts the on-disk integers back into the channel's physical unit (volts, microvolts, degrees Celsius, …).
The reader is the BIDS counterpart of the legacy mne_edf2fiff command-line tool, refactored into a reusable library class so the same parser feeds both BIDSLIB::BidsRawData and standalone converters. The optional fScaleFactor constructor argument defaults to 1e6 so the canonical microvolt-stored EEG / iEEG channels emerge in volts, matching the MNE-CPP FIFFLIB convention.
Format reference: Kemp & Olivan, ``European data format 'plus' (EDF+)'', Clin. Neurophysiol. 114 (2003) 1755–1761; spec at https://www.edfplus.info/specs/edf.html.
Definition in file bids_edf_reader.h.