[Mne_analysis] Fwd: Extract channels as numpy arrays

Daniel McCloy dan.mccloy at gmail.com
Fri May 3 12:38:32 EDT 2019
Search archives:

        External Email - Use Caution        

Raw objects have a get_data method: 

raw_array = raw.get_data()

On May 3, 2019 6:35:52 AM AKDT, Sied Kebir <skycrazer at gmail.com> wrote:
>        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,
>group_by='position')*
>"
>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
>Kebir
>--------------
>Dr. med. Sied Kebir
>Dahlhauser Str. 46
>45279 Essen



More information about the Mne_analysis mailing list