[Mne_analysis] Fwd: Extract channels as numpy arrays

Sied Kebir skycrazer at gmail.com
Fri May 3 10:35:52 EDT 2019
Search archives:

        External Email - Use Caution        

Dear MNE enthusiasts,

I reach out to you with a specific question regarding the python MNE
library and hope you can assist me as my colleagues can't. I am a
neurologist interested in analyzing EEG data using the python version of
mne. Pursuant to the mne documentation I have run the following python code:


*import os.path as opimport numpy as npimport mnedata_path =
op.join(mne.datasets.sample.data_path(), 'MEG', 'sample')raw =
mne.io.read_raw_fif(op.join(data_path, 'sample_audvis_raw.fif'),
preload=True)raw.set_eeg_reference('average', projection=True)  # set EEG
average referenceraw.plot(block=True, lowpass=40)raw.plot(butterfly=True,
Doing this allowed me to visualize the EEG data as follows:
[image: grafik.png]

Is there a way to output each of the MEG channels (just the curves) as
numpy arrays? I would appreciate your help very much.

Thank you very much.

Best regards
Dr. med. Sied Kebir
Dahlhauser Str. 46
45279 Essen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190503/865576a0/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grafik.png
Type: image/png
Size: 40823 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190503/865576a0/attachment-0001.png 

More information about the Mne_analysis mailing list