主要函数
mne.io.read_raw_gdf
(input_fname, montage='deprecated', eog=None, misc=None, stim_channel='auto', exclude=(), preload=False, verbose=None)
举例
-
import mne
-
%matplotlib inline
-
import numpy
as np
-
-
# Mention the file path to the dataset
-
filename =
"./BCICIV_2a_gdf/A01T.gdf"
-
-
raw = mne.io.read_raw_edf(filename)
-
-
print(raw.info)
-
print(raw.ch_names)
打印的信息
-
Extracting EDF parameters from F:\硕士\脑电\data\左右握拳edf\S001R01.edf...
-
EDF file detected
-
EDF annotations detected (consider using raw.find_edf_events() to extract them)
-
Setting channel info structure...
-
Creating raw.info structure...
-
Reading
0 ...
9759 =
0.000 ...
60.994 secs...
-
Used Annotations descriptions: [
'T0']
-
<Info |
16 non-
empty fields
-
bads :
list |
0 items
-
ch_names :
list | Fc5., Fc3., Fc1., Fcz., Fc2., Fc4., Fc6., C5.., C3.., ...
-
chs :
list |
65 items (EEG:
64, STIM:
1)
-
comps :
list |
0 items
-
custom_ref_applied : bool |
False
-
dev_head_t : Transform |
3 items
-
events :
list |
0 items
-
highpass : float |
0.0 Hz
-
hpi_meas :
list |
0 items
-
hpi_results :
list |
0 items
-
lowpass : float |
80.0 Hz
-
meas_date : tuple |
2009
-08
-12
16:
15:
00 GMT
-
nchan : int |
65
-
proc_history :
list |
0 items
-
projs :
list |
0 items
-
sfreq : float |
160.0 Hz
-
acq_pars : NoneType
-
acq_stim : NoneType
-
ctf_head_t : NoneType
-
description : NoneType
-
dev_ctf_t : NoneType
-
dig : NoneType
-
experimenter : NoneType
-
file_id : NoneType
-
gantry_angle : NoneType
-
hpi_subsystem : NoneType
-
kit_system_id : NoneType
-
line_freq : NoneType
-
meas_id : NoneType
-
proj_id : NoneType
-
proj_name : NoneType
-
subject_info : NoneType
-
xplotter_layout : NoneType
-
>
-
[
'Fc5.',
'Fc3.',
'Fc1.',
'Fcz.',
'Fc2.',
'Fc4.',
'Fc6.',
'C5..',
'C3..',
'C1..',
'Cz..',
'C2..',
'C4..',
'C6..',
'Cp5.',
'Cp3.',
'Cp1.',
'Cpz.',
'Cp2.',
'Cp4.',
'Cp6.',
'Fp1.',
'Fpz.',
'Fp2.',
'Af7.',
'Af3.',
'Afz.',
'Af4.',
'Af8.',
'F7..',
'F5..',
'F3..',
'F1..',
'Fz..',
'F2..',
'F4..',
'F6..',
'F8..',
'Ft7.',
'Ft8.',
'T7..',
'T8..',
'T9..',
'T10.',
'Tp7.',
'Tp8.',
'P7..',
'P5..',
'P3..',
'P1..',
'Pz..',
'P2..',
'P4..',
'P6..',
'P8..',
'Po7.',
'Po3.',
'Poz.',
'Po4.',
'Po8.',
'O1..',
'Oz..',
'O2..',
'Iz..',
'STI 014']
info结构
https://mne.tools/stable/generated/mne.Info.html#mne.Info
mne.
find_events
(raw, stim_channel=None, output='onset', consecutive='increasing', min_duration=0, shortest_event=2, mask=None, uint_cast=False, mask_type='and', initial_event=False, verbose=None)
转载:https://blog.csdn.net/fzf1996/article/details/104637766
查看评论