# mne\_process\_raw: simple question

**URL:** https://mne.discourse.group/t/mne-process-raw-simple-question/448
**Category:** Mailing List Archive (read-only)
**Tags:** list-archive
**Created:** [May 21, 2012, 6:01pm UTC](https://mne.discourse.group/t/mne-process-raw-simple-question/448 "2012-05-21T18:01:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)
#### Post date: [May 21, 2012, 6:01pm UTC](https://mne.discourse.group/t/mne-process-raw-simple-question/448/1 "2012-05-21T18:01:25Z")

</div>

Hi Everyone,

I am using mne\_process\_raw to compute averaged MEG and am unable to get output without using the -gave switch. Here's an example:

./mne\_process\_raw -ave file.ave -events file.eve -raw data.fif -raw data.fif -gave output.fif

As you can see, I have to transit the data file twice to fool it into thinking it's computing a grand average. - Embarrassing - but it would be nice to know how to do it correctly. Thanks.

Don

Don Krieger, Ph.D., D.ABNM  
Department of Neurological Surgery  
University of Pittsburgh  
(412)648-9654

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20120521/1b9c4ebf/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20120521/1b9c4ebf/attachment.html)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)
#### Post date: [May 21, 2012, 6:07pm UTC](https://mne.discourse.group/t/mne-process-raw-simple-question/448/2 "2012-05-21T18:07:37Z")

</div>

Hi Donald,  
You should specify the output file (as well as log file and other  
definitions) in your "file.ave" in this format:

outfile file.fif

I have included one of our ave files as a reference. Let me know if you  
have further questions!

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)
#### Post date: [May 21, 2012, 6:33pm UTC](https://mne.discourse.group/t/mne-process-raw-simple-question/448/3 "2012-05-21T18:33:37Z")

</div>

Hi Donald,

I don't know about making grand average .fif files, but you can make grand  
average .stc (source time-course) files using mne\_average\_estimates (after  
making individual subject average .fif, computing the inverse operator, and  
then making individual subject .stc files)--I'm not sure if that's what  
you're trying to do thought.

Best,  
Steve

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)
#### Post date: [May 21, 2012, 7:55pm UTC](https://mne.discourse.group/t/mne-process-raw-simple-question/448/4 "2012-05-21T19:55:02Z")

</div>

Thanks for the help. That did it.

Don

Don Krieger, Ph.D., D.ABNM  
Department of Neurological Surgery  
University of Pittsburgh  
(412)648-9654
