<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><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have EEG data from Brainvision (.vhdr extension).<br></blockquote><div>[snip] <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is there a function that can take the .vhdr files, convert them to<br>
numpy arrays.<br></blockquote><div>yes:</div><div># convert brainvision .eeg file to mne.Raw format</div><div># <a href="https://www.martinos.org/mne/stable/generated/mne.io.read_raw_brainvision.html">https://www.martinos.org/mne/stable/generated/mne.io.read_raw_brainvision.html</a><br></div><div>my_raw = mne.io.read_raw_brainvision(&#39;my_header_file.vhdr&#39;)</div><div></div><div># convert Raw object to numpy array</div><div># <a href="https://www.martinos.org/mne/stable/generated/mne.io.Raw.html#mne.io.Raw.get_data">https://www.martinos.org/mne/stable/generated/mne.io.Raw.html#mne.io.Raw.get_data</a></div><div>my_array = my_raw.get_data()</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is there a function that can take the files with events, and possibly<br>
cut them into segments and normalize them?</blockquote><div>yes:</div><div># <a href="https://www.martinos.org/mne/stable/generated/mne.Epochs.html">https://www.martinos.org/mne/stable/generated/mne.Epochs.html</a><br></div><div>mne.Epochs(my_raw, my_events_file, ...)<br></div></div></div></div></div></div></div>