<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Eric, shouldn&#39;t you be able to read the head position directly from the *.fif files because you have the head_to_dev transforms?<br></div></div></div></blockquote><div><br></div><div>The initial head position is stored in info[&#39;dev_head_t&#39;], yeah. However the time-varying head position, which is needed for movement compensation, isn&#39;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 ...`.</div><div><br></div><div>We have done some work in MNE-Python on estimating the head positions directly, but it&#39;s still experimental. So for now you can do something like this to get a suitable head-position text file:</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><div>maxfilter -f test_raw.fif -headpos -format short -hp test_raw_hp.pos</div></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>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&#39;s easiest to use the ASCII text file output test_raw_hp.pos instead.</div><div><br></div><div>Eric</div><div><br></div></div></div></div>