<div dir="ltr"><div>Hello Andreas,<br></div><div><div><br></div><div>Thank you for your answer.</div><div><br></div><div>I started looking closer at the conversion from theta and phi to longitude and latitude because I found some sources saying that they don't map onto each other in a one-to-one manner (e.g., <a href="http://stackoverflow.com/questions/5674149/3d-coordinates-on-a-sphere-to-latitude-and-longitude" target="_blank">this post</a>, see highest rated answer). After <span style="font-size:12.8px">getting some help from a friend in physics I learned that </span><span style="font-size:12.8px">sph_theta = longitude, but that sph_phi = latitude </span><span style="font-size:12.8px">is not correct because phi is measured in relationship to the zenith, while latitude is measured in relation to the equator. Thus, the relationship between phi and latitude is that latitude = 90 - phi. After plotting this, and comparing values from car2ph() conversion taking the x, y, z values (which are also included in EEGLAB) I realized that this 90 - phi adjustment had already been made in EEGLAB. Thus, what is called sph_phi in EEGLAB is actually the latitude. I guess I could have made my life easier by not questioning whether theta and phi are the same as longitude and latitude in the first place. :D</span></div><div><br></div><div>One very important thing I also learned, and which caused me a lot of trouble researching this, is that physics and math people use theta and phi in the exact opposite way (see <a href="https://en.wikipedia.org/wiki/Spherical_coordinate_system" target="_blank">Wiki</a>). The EEGLAB file follows the physics notation though, where theta denotes the polar angle, while phi means the azimutal angle (at least that's how it should be in principle, with the qualification that EEGLAB's <span style="font-size:12.8px">sph_phi</span><span style="font-size:12.8px">  </span>is actually the latitude (so 90-phi) as explained above).</div><div><br></div><div>Please let me know whether I got anything wrong about these relationships in your (or other's) opinion!</div></div><div><br></div><div>All the best, and thank you for following up on this,</div><div>Stefanie</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 5, 2016 at 8:45 AM, Andreas Widmann <span dir="ltr"><<a href="mailto:widmann@uni-leipzig.de" target="_blank">widmann@uni-leipzig.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Stefanie,<br>
<br>
to my understanding sph_theta and sph_phi directly reflect longitude and latitude, respectively. Could you please explain your problem in more detail?<br>
<br>
Best,<br>
Andreas<br>
<div><div><br>
> Am 29.06.2016 um 22:20 schrieb Stefanie Nickels <<a href="mailto:stefanie.nickels@gmail.com" target="_blank">stefanie.nickels@gmail.com</a>>:<br>
><br>
> Hello all,<br>
><br>
> I am looking for a file that contains the spherical coordinates for electrodes placed in the standard 10-20 system, but I specifically need the values in degrees of longitude and latitude.<br>
><br>
> I am aware that eeglab contains a number of channel location lookup files (such as standard-10-5-cap385.elp), but they only contain the spherical theta and phi (and radius, which is constant). I understand that these three values uniquely specify the electrode's position in the sphere, but I don't know how to get to longitude and latitude from there. So a) does anyone have a file that already contains the electrode positions in longitude and latitude, or b) can someone point me towards the formula that lets me solve for longitude and latitude from theta and phi?<br>
><br>
> Thank you all very much,<br>
> Stefanie<br>
><br>
><br>
</div></div><div><div>> _______________________________________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
<br>
</div></div></blockquote></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 5, 2016 at 8:45 AM, Andreas Widmann <span dir="ltr"><<a href="mailto:widmann@uni-leipzig.de" target="_blank">widmann@uni-leipzig.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Stefanie,<br>
<br>
to my understanding sph_theta and sph_phi directly reflect longitude and latitude, respectively. Could you please explain your problem in more detail?<br>
<br>
Best,<br>
Andreas<br>
<div class="HOEnZb"><div class="h5"><br>
> Am 29.06.2016 um 22:20 schrieb Stefanie Nickels <<a href="mailto:stefanie.nickels@gmail.com">stefanie.nickels@gmail.com</a>>:<br>
><br>
> Hello all,<br>
><br>
> I am looking for a file that contains the spherical coordinates for electrodes placed in the standard 10-20 system, but I specifically need the values in degrees of longitude and latitude.<br>
><br>
> I am aware that eeglab contains a number of channel location lookup files (such as standard-10-5-cap385.elp), but they only contain the spherical theta and phi (and radius, which is constant). I understand that these three values uniquely specify the electrode's position in the sphere, but I don't know how to get to longitude and latitude from there. So a) does anyone have a file that already contains the electrode positions in longitude and latitude, or b) can someone point me towards the formula that lets me solve for longitude and latitude from theta and phi?<br>
><br>
> Thank you all very much,<br>
> Stefanie<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
<br>
</div></div></blockquote></div><br></div>