I am very new to python and I want to analyse some EEG data. Right now, I am starting off with the EEG-pre-processing. My supervisor has provided me with some information and the file for the channel location happen to be with an .mat ending. I did some Google research and tried various codes, without any success.
Is it possible to read the channel locations from a file ending with .mat? To then add it with set_montage? It contains the channel locations in a 1X61 structure with 10 fields (theta, radius, X, Y, Z, sph_theta, sph_phi, sph_radius, type). Or is there a way to transform this file into something that is readable in python?
I am working on a MacBook, version 12.6 macOS Monterey,
MNE version: 0.4.0
Hello again and quick update:
I have managed to export the channel locations as an CSV and import it that way to python and added it to my data. Now I am only missing the underlying “head”. Please find pictures of what I am talking about in the reply. The CSV format is also displayed. I get the error “RuntimeWarning: Fiducial point nasion not found, assuming identity unknown to head transformation”
Ok, so I took a long way around. Imported the channel locations to EEG-Lab in Matlab, exported it and finally have a montage that is somewhat reasonable, but it is still not 100 as in MATLAB. In Matlab the locations are shown in the right position, while python locations are off the head. What is happening?
You can pass sphere='eeglab' when plotting the montage. This will bring you a little bit closer to what you see in the EEGLAB figure (but still not match it exactly).