<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
Hello,
<div class="">
<div class=""><br class="">
</div>
<div class="">You should be able to extract the dipoles coordinates of each hemisphere using the following (works with version 0.22.1):</div>
<div class=""><br class="">
</div>
<div class="">&gt;&gt;&gt; left_hemi, right_hemi = fwd[&quot;src&quot;]</div>
<div class="">&gt;&gt;&gt; left_coords, right_coords = [hemi[&quot;rr&quot;][hemi[&quot;vertno&quot;]] for hemi in [left_hemi, right_hemi]]</div>
<div class=""><br class="">
</div>
<div class="">If you want all coordinates (i.e. those associated with the nondecimated mesh), you just have to use remove the extra
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">hemi[&quot;vertno&quot;]</span>&nbsp;slicing.</div>
<div class=""><br class="">
</div>
<div class="">Hope it helps!</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">ClĂ©ment</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 May 2021, at 12:54 AM, Karin Westin &lt;<a href="mailto:karin.westin85@gmail.com" class="">karin.westin85@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<p class=""><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<div class=""><br class="webkit-block-placeholder">
</div>
<div dir="ltr" class="">
<div class="">Hi all!</div>
<div class=""><br class="">
</div>
<div class="">As I understood it, the matrix fwd['sol']['data'] represents sensors x dipoles. How can one extract the coordinates of these dipoles?</div>
<div class=""><br class="">
</div>
<div class="">Thanks in advance,</div>
<div class="">Karin<br class="">
</div>
</div>
_______________________________________________<br class="">
Mne_analysis mailing list<br class="">
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" class="">Mne_analysis@nmr.mgh.harvard.edu</a><br class="">
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>