mne.add_reference_channels#
- mne.add_reference_channels(inst, ref_channels, copy=True)[source]#
Add reference channels to data that consists of all zeros.
Adds reference channels to data that were not included during recording. This is useful when you need to re-reference your data to different channels. These added channels will consist of all zeros.
- Parameters:
- instinstance of
Raw
|Epochs
|Evoked
Instance of Raw or Epochs with EEG channels and reference channel(s).
- ref_channels
str
|list
ofstr
Name of the electrode(s) which served as the reference in the recording. If a name is provided, a corresponding channel is added and its data is set to 0. This is useful for later re-referencing.
- copy
bool
Specifies whether the data will be copied (True) or modified in-place (False). Defaults to True.
- instinstance of
- Returns:
Examples using mne.add_reference_channels
#
Setting the EEG reference