<div dir="ltr">Hi Jorn,<div><br></div><div>Sorry for the late response. I had to create a template for our cap, which had it's own issues, but I think at this point I have it working. Even if there are still some trigonometric issues, at the very least I have the fieldtrip issue resolved. </div>
<div><br></div><div>For future reference, because I don't remember seeing anything on the fieldtrip FAQ about this and it may be useful to somebody else, the important thing is to turn the phi/theta from degrees into radians, and then applying a trigonometric function to get the X, Y, and Z coordinates.</div>
<div><br></div><div>You can do all of these steps in 3 excel functions:</div><div><br></div><div>X = COS(RADIANS(Phi))*SIN(RADIANS(Theta))<br></div><div>Y = SIN(RADIANS(Theta))*SIN(RADIANS(Phi))</div><div>Z = =COS(RADIANS(Theta))</div>
<div><br></div><div>This link on the easycap website (<a href="http://www.easycap.de/easycap/e/downloads/how_to_read_3d.htm">http://www.easycap.de/easycap/e/downloads/how_to_read_3d.htm</a>) explains the coordinate system.</div>
<div><br></div><div>I then typed up the channel name, x, y, and z coordinates in a four column notepad document saved as a .sfp file, and used that as my cfg.elecfile.</div><div><br></div><div>Thank you for the support,</div>
<div><br></div><div>Max</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 5:15 AM, "Jörn M. Horschig" <span dir="ltr"><<a href="mailto:jm.horschig@donders.ru.nl" target="_blank">jm.horschig@donders.ru.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Max,<br>
<br>
check out Fieldtrip/template/electrode and see if you can use one
of the templates in there. Best would be to use electrode
measurements that you actually performed yourself (to get the
distances between electrodes right), but using a template might be
good as well. Once you found a good template-file, you can set
cfg.elecfile = 'folder/filename' and FieldTrip will handle the
rest.<br>
Otherwise, if some of your colleagues have electrode measurements,
you can also ask them for advice.<br>
<br>
Best,<br>
Jörn<div><div class="h5"><br>
<br>
On 11/15/2013 5:40 PM, Max Cantor wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I'm trying to perform channel repair on EEG data that has
undergone jump, muscle, and visual artifact rejection, and ICA
to remove eog and ecg components, unmixed back into the
original channels. It's a 61 channel system using a modified
easycap layout and neighbours template. </div>
<div><br>
</div>
<div>The layout has been shown to work on topographic displays,
and the template seems to work in that it creates a neighbours
object when ft_prepare_neighbours is run on it without any
errors.</div>
<div><br>
</div>
<div>However, I'm getting an error when I attempt to run
ft_channelrepair: <br>
<br>
<div>Error using ft_fetch_sens (line 179)</div>
<div>no electrodes or gradiometers specified.</div>
<div><br>
</div>
<div>Error in ft_channelrepair (line 112)</div>
<div> sens = ft_fetch_sens(cfg, data);</div>
</div>
<div><br>
</div>
<div>I'm not currently using ft_datatype_sens or ft_read_sens,
as I'm not really sure what elec/sens file I should be reading
or how to go about creating it. I was hoping that the
template, my data, and/or the layout would contain the
necessary information, but given the error on ft_fetch_sens,
that doesn't seem to be the case.</div>
<div><br>
</div>
<div>Any help on this issue would be greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Max</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a href="mailto:jm.horschig@donders.ru.nl" target="_blank">jm.horschig@donders.ru.nl</a>
Tel: <a href="tel:%2B31-%280%2924-36-68493" value="+31243668493" target="_blank">+31-(0)24-36-68493</a>
Web: <a href="http://www.ru.nl/donders" target="_blank">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>