If you have a question or issue with MNE-Python, please include the following info:
- MNE version: e.g. 0.24.0
- operating system: e.g. macOS 12 / Windows 10 / Ubuntu 18.04
Is there any function to extract frequency bands from epochs not the raw data?
If you have a question or issue with MNE-Python, please include the following info:
Is there any function to extract frequency bands from epochs not the raw data?
Hello,
The PSD functions, multitaper
or welch
can both be run on Raw
,Epochs
or Evoked
object.
See for instance the argument for multitaper
in the version 0.24
Mathieu
Are you actually using version 0.24, or is that just the placeholder text? If youβre on the current stable version (1.2) you can use epochs.compute_psd()
to get a Spectrum
object, and then psd, freqs = spectrum.get_data(return_freqs=True)
. From this you can figure out which bin(s) contain the frequencies of interest, and then average those bins together to get average power in the band.