飞道的博客

MNE库读取gdf数据文件

444人阅读  评论(0)
主要函数

mne.io.read_raw_gdf(input_fnamemontage='deprecated'eog=Nonemisc=Nonestim_channel='auto'exclude=()preload=Falseverbose=None)


举例

  
  1. import mne
  2. %matplotlib inline
  3. import numpy as np
  4. # Mention the file path to the dataset
  5. filename = "./BCICIV_2a_gdf/A01T.gdf"
  6. raw = mne.io.read_raw_edf(filename)
  7. print(raw.info)
  8. print(raw.ch_names)

打印的信息 


  
  1. Extracting EDF parameters from F:\硕士\脑电\data\左右握拳edf\S001R01.edf...
  2. EDF file detected
  3. EDF annotations detected (consider using raw.find_edf_events() to extract them)
  4. Setting channel info structure...
  5. Creating raw.info structure...
  6. Reading 0 ... 9759 = 0.000 ... 60.994 secs...
  7. Used Annotations descriptions: [ 'T0']
  8. <Info | 16 non- empty fields
  9. bads : list | 0 items
  10. ch_names : list | Fc5., Fc3., Fc1., Fcz., Fc2., Fc4., Fc6., C5.., C3.., ...
  11. chs : list | 65 items (EEG: 64, STIM: 1)
  12. comps : list | 0 items
  13. custom_ref_applied : bool | False
  14. dev_head_t : Transform | 3 items
  15. events : list | 0 items
  16. highpass : float | 0.0 Hz
  17. hpi_meas : list | 0 items
  18. hpi_results : list | 0 items
  19. lowpass : float | 80.0 Hz
  20. meas_date : tuple | 2009 -08 -12 16: 15: 00 GMT
  21. nchan : int | 65
  22. proc_history : list | 0 items
  23. projs : list | 0 items
  24. sfreq : float | 160.0 Hz
  25. acq_pars : NoneType
  26. acq_stim : NoneType
  27. ctf_head_t : NoneType
  28. description : NoneType
  29. dev_ctf_t : NoneType
  30. dig : NoneType
  31. experimenter : NoneType
  32. file_id : NoneType
  33. gantry_angle : NoneType
  34. hpi_subsystem : NoneType
  35. kit_system_id : NoneType
  36. line_freq : NoneType
  37. meas_id : NoneType
  38. proj_id : NoneType
  39. proj_name : NoneType
  40. subject_info : NoneType
  41. xplotter_layout : NoneType
  42. >
  43. [ '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(rawstim_channel=Noneoutput='onset'consecutive='increasing'min_duration=0shortest_event=2mask=Noneuint_cast=Falsemask_type='and'initial_event=Falseverbose=None)

 


转载:https://blog.csdn.net/fzf1996/article/details/104637766
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场