MNE学习笔记1

参考:https://mne.tools/stable/auto_tutorials/index.htmlhttps://blog.csdn.net/zyb228/article/details/103128981https://blog.csdn.net/CoolCoolCarrot/article/details/88931907数据读取import mnefrom mne import ioimport matplotlib.pyplot as plt#data_path = mne
摘要由CSDN通过智能技术生成

参考:
https://mne.tools/stable/auto_tutorials/index.html
https://blog.csdn.net/zyb228/article/details/103128981
https://blog.csdn.net/CoolCoolCarrot/article/details/88931907

数据读取
import mne
from mne import io
import matplotlib.pyplot as plt

#data_path = mne.datasets.sample.data_path()
raw_name = 'H:/PycharmProjects/untitled1/simple/sample_audvis_filt-0-40_raw.fif'

raw = io.read_raw_fif(raw_name)

raw.plot()

在这里插入图片描述

raw对象数据结构
raw.info

在这里插入图片描述

  • bads :不良通道
  • ch_names:通道名称
  • chs: 通道信息字典列表
  • sfreq:采样频率
raw数据访问:

data, times = raw[picks, time_slice]
picks:通道索引
time_slice:时间切片

picks = mne.pick_types(raw.info,meg=False,eeg=True,exclude='bads')
#time_as_index() 将时间(s)转换为样本中最接近该时间的整数索引
time_slice = raw.time_as_index([
  • 4
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值