# Help with DigMontage coordinates for EGI system

**URL:** <https://mne.discourse.group/t/help-with-digmontage-coordinates-for-egi-system/2172>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [April 28, 2020, 6:57pm UTC](https://mne.discourse.group/t/help-with-digmontage-coordinates-for-egi-system/2172 "2020-04-28T18:57:13Z")\
**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:** [April 28, 2020, 6:57pm UTC](https://mne.discourse.group/t/help-with-digmontage-coordinates-for-egi-system/2172/1 "2020-04-28T18:57:13Z")

</div>

Hi all,

I am using MNE v0.20 and trying to read electrode locations from an EGI system in .xml file format.

For this purpose, I used the function "mne.channels.read\_dig\_egi". Whereas, my colleague has previously used "mne.channels.read\_dig\_montage" which is now discontinued in versions after v0.18. Both the functions return a DigMontage instance with a list of electrode number and their locations. Our issue is that the two montages have the locations with different values and different units; read\_dig\_egi uses 'mm' and read\_dig\_montage uses meters. Simply scaling is not enough as even then the numbers are different. Any ideas on why the two montages are different for the same EGI file?

Another issue related to the coordinates: While aligning the EEG/MRI coordinates, my sensor points are way off from the head model. The points are invisible even after marking fiducials. ICL alignment does not work and gives an error that there was too large difference in matching. But when my colleague used the older function "read\_dig\_montage", the sensor points were visible and also aligned well to the head model.

Let me know if I should provide more information. I have attached the two montage files, if that would be of any help.

Thanks,  
Manorama Kadwani  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200428/c43ba9d4/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200428/c43ba9d4/attachment-0001.html)  
-------------- next part --------------  
An embedded and charset-unspecified text was scrubbed...  
Name: dig\_egi.txt  
Url: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200428/c43ba9d4/attachment-0002.txt](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200428/c43ba9d4/attachment-0002.txt)  
-------------- next part --------------  
An embedded and charset-unspecified text was scrubbed...  
Name: dig\_montage.txt  
Url: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200428/c43ba9d4/attachment-0003.txt](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200428/c43ba9d4/attachment-0003.txt)

---

<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:** [April 28, 2020, 7:11pm UTC](https://mne.discourse.group/t/help-with-digmontage-coordinates-for-egi-system/2172/2 "2020-04-28T19:11:55Z")

</div>

External Email - Use Caution

hi Manorama

are you using default EGI xml locations or digitized locations?

if you use the template can you try:

montage = mne.channels.make\_standard\_montage(kind='EGI\_256')

see:  
[https://mne.tools/stable/generated/mne.channels.make\_standard\_montage.html?highlight=read\_dig\_egi](https://mne.tools/stable/generated/mne.channels.make_standard_montage.html?highlight=read_dig_egi)

Alex
