Rescale data import from fieldtrip

I have a .e file that converted into .edf using fieldtrip (ft_preprocessing and ft_write_data).

When mne.io.read_raw_edf and plot() the data, I notice the unit not scale according to mne convention, which I believe in V (Correct me if Im wrong).

I have come across previously whereby the signal can be rescale to compatible with mne environment. However, I fail to find the documentation now. Appreciate if someone can point to the proper documentation

You can use raw.apply_function() for this purpose. MNE expects the unit of EEG signals to be V, so because your data is presumably in µV you could convert it like this:

raw.apply_function(lambda x: x * 1e-6)
1 Like