[Mne_analysis] TFR Multitaper on Raw Data
Rockhill, Alexander P.
AROCKHILL at mgh.harvard.edu
Wed Dec 6 11:28:12 EST 2017
Thanks for the response,
I am realizing now that the problem is with my time_bandwidth parameter. Since this is not for epochs but for the whole data, I am setting this to 30.0 but I get an index error from the tapers in _make_dpss. Is there some limit to the time_bandwidth? I am replicating someone else's multitaper parameters so if possible it would be great to be able to have this time_bandwidth.
Thanks,
Alex
________________________________
From: mne_analysis-bounces at nmr.mgh.harvard.edu [mne_analysis-bounces at nmr.mgh.harvard.edu] on behalf of JR KING [jeanremi.king at gmail.com]
Sent: Monday, December 04, 2017 6:39 PM
To: Discussion and support forum for the users of MNE Software
Subject: Re: [Mne_analysis] TFR Multitaper on Raw Data
Hi Alex,
You can do:
# retrieve data as numpy array:
raw_array = raw.load_data().pick_channels([picked_channel,]).get_data()
# apply time frequency decomposition:
freqs = np.logspace(0, 1, 10)
sfreq = raw.info<http://raw.info>['sfreq']
tfr = mne.time_frequency.tfr_array_multitaper([raw_array], sfreq=sfreq, freqs=freqs)
Best,
Jean-Rémi
On 4 December 2017 at 18:30, Rockhill, Alexander P. <AROCKHILL at mgh.harvard.edu<mailto:AROCKHILL at mgh.harvard.edu>> wrote:
Hi all,
Is there a way or best way to apply the tfr multitaper to an entire raw channel?
Thanks,
Alex
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto:Mne_analysis at nmr.mgh.harvard.edu>
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171206/30b50b38/attachment.html
More information about the Mne_analysis
mailing list