[Mne_analysis] Coordinates of dipoles in fwd['sol']['data']?

VERRIER Clement clement.VERRIER at univ-amu.fr
Thu May 6 01:54:11 EDT 2021
Search archives:

        External Email - Use Caution        

Hello,

You should be able to extract the dipoles coordinates of each hemisphere using the following (works with version 0.22.1):

>>> left_hemi, right_hemi = fwd["src"]
>>> left_coords, right_coords = [hemi["rr"][hemi["vertno"]] for hemi in [left_hemi, right_hemi]]

If you want all coordinates (i.e. those associated with the nondecimated mesh), you just have to use remove the extra hemi["vertno"] slicing.

Hope it helps!

Best,
Clément


On 6 May 2021, at 12:54 AM, Karin Westin <karin.westin85 at gmail.com<mailto:karin.westin85 at gmail.com>> wrote:


        External Email - Use Caution

Hi all!

As I understood it, the matrix fwd['sol']['data'] represents sensors x dipoles. How can one extract the coordinates of these dipoles?

Thanks in advance,
Karin
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto:Mne_analysis at nmr.mgh.harvard.edu>
https://secure-web.cisco.com/1jNfLmdR5gfo2JWF7ZeI3xx0sURrjXFDKWrEtt3HFQ6Ql1izQZIuGR47ncQV7IimRYKwFng4S8JGdRazQfVzVYg13M2Cu6Sp_c-UskiAzoDncXuhMiF4aUNrRYlOG3W0rsS2KGfZo7C4OYMRYVTsTOTj4sNETpZjNajZosP1FrDhZAknjcj5y7c_ma8bjj_nUAnf9rXoXNSlcQQLIgbdmhBXohCI-B4L3JuKI2G2ywdxpzPpQFZEwCAs9IKRozjhwrRK49ml_BBCZ3gSBpNMBTQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20210506/00340308/attachment.html 


More information about the Mne_analysis mailing list