# Get 3D coordinates of MEG sensors

**URL:** <https://mne.discourse.group/t/get-3d-coordinates-of-meg-sensors/2311>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [September 6, 2020, 5:48pm UTC](https://mne.discourse.group/t/get-3d-coordinates-of-meg-sensors/2311 "2020-09-06T17:48:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2020, 5:48pm UTC](https://mne.discourse.group/t/get-3d-coordinates-of-meg-sensors/2311/1 "2020-09-06T17:48:47Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 7, 2020, 7:31am UTC](https://mne.discourse.group/t/get-3d-coordinates-of-meg-sensors/2311/2 "2020-09-07T07:31:39Z")

</div>

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](https://github.com/mne-tools/mne-python/blob/master/mne/data/coil_def.dat)

HTH  
Alex
