Get 3D coordinates of MEG sensors

External Email - Use Caution

Hi everyone,

I am trying to get the 3D coordinates of MEG sensors (somato dataset) in order to do some basic experiments with the forward operator. I am following this tutorial: https://mne.tools/stable/auto_tutorials/intro/plot_40_sensor_locations.html,
but I am quite lost. I have checked the ?info? parameter of the raw file, but I did not find the coordinates of the sensors.

Could someone help me please ?

Thank you,

Cl?ment Verrier

External Email - Use Caution

hi Cl?ment,

you need to look at

info['chs'][idx]['loc']

for meg sensors it contains translation and rotation of channel geometries
are described in
https://github.com/mne-tools/mne-python/blob/master/mne/data/coil_def.dat

HTH
Alex