[Mne_analysis] Read head position from .fif file

Benoît MARTIN bmartin.neuro at gmail.com
Fri Jul 15 04:54:05 EDT 2016
Search archives:

Thanks a lot for helping and for the solutions,
Best,
Benoît

2016-07-13 18:55 GMT+02:00 Eric Larson <larson.eric.d at gmail.com>:

> Eric, shouldn't you be able to read the head position directly from the
>> *.fif files because you have the head_to_dev transforms?
>>
>
> The initial head position is stored in info['dev_head_t'], yeah. However
> the time-varying head position, which is needed for movement compensation,
> isn't stored in the FIF file until 1) movement compensation is performed in
> Python or MaxFilter, or 2) MaxFilter is run in head-position-only mode as
> `maxfilter -headpos ...`.
>
> We have done some work in MNE-Python on estimating the head positions
> directly, but it's still experimental. So for now you can do something like
> this to get a suitable head-position text file:
>
> maxfilter -f test_raw.fif -headpos -format short -hp test_raw_hp.pos
>
>
> Note that this MaxFilter mode will also write out a test_raw_quat.fif
> file, which is the same as the input file, but with the head positions
> added as channels. But for MNE-Python it's easiest to use the ASCII text
> file output test_raw_hp.pos instead.
>
> Eric
>
>
> _______________________________________________
> Mne_analysis mailing list
> 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/20160715/198e6f49/attachment-0001.html 


More information about the Mne_analysis mailing list