<div dir="ltr">You can actually write out more than 2GB, the MATLAB code will not stop you. I&#39;m not sure what the fix would be there.<div><br></div><div>If you load the files in mne-python and concatenate them there, they will be automatically split at the 2GB mark into &quot;name_raw.fif&quot; and &quot;name_raw-1.fif&quot;, and a tag will be inserted in the first file pointing to the second. During any subsequent processing if you tell it to load the main file, the second will be automatically loaded.<div><br></div><div>Eric</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 5, 2015 at 6:47 AM, Frédéric Roux <span dir="ltr">&lt;<a href="mailto:f.roux@bcbl.eu" target="_blank">f.roux@bcbl.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Chris,<br>
<br>
thanks for getting back on this so quickly.<br>
<br>
The size of both files is 1.9 GB and 660 MB, so<br>
after merging the file size is 2.5GB.<br>
<br>
<br>
As I said, the only steps involved are the merging in Matlab<br>
using fiff_write_raw_buffer and then mne_process_raw.<br>
<br>
Do you think that there is a way of fixing this error?<br>
<br>
--<br>
FR<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
From: &quot;Christopher Bailey&quot; &lt;<a href="mailto:cjb@cfin.au.dk">cjb@cfin.au.dk</a>&gt;<br>
To: &quot;Discussion and support forum for the users of MNE Software&quot; &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Sent: Friday, June 5, 2015 1:11:47 PM<br>
Subject: Re: [Mne_analysis] error when using mne_process_raw on merged fif data<br>
<br>
Dear Fred,<br>
<br>
How big are the files you are merging? The fseek error may be due to the 32-bit&#39;ness of the FIF format (seeks beyond 2 GB not possible). Although I suppose this would already have been a snag for the writing... More info on the steps leading to the error might help.<br>
<br>
Best<br>
<br>
Chris<br>
Aarhus, Denmark<br>
<br>
&gt; On Jun 5, 2015, at 12:03 PM, Frédéric Roux &lt;<a href="mailto:f.roux@bcbl.eu">f.roux@bcbl.eu</a>&gt; wrote:<br>
&gt;<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I am mering two separate fif files from the same run into one<br>
&gt; single fif file in Matlab using the fiff_write_raw_buffer.<br>
&gt;<br>
&gt; However, when I feed these files into mne_process_raw<br>
&gt; it returns an error saying<br>
&gt;<br>
&gt; fseek: Invalid argument<br>
&gt;<br>
&gt; Can mne_process_raw handle merged fif data and is there a simple way of circumventing this problem?<br>
&gt;<br>
&gt; Any help or advice on this would be highly appreciated.<br>
&gt;<br>
&gt; Best,<br>
&gt; Fred<br>
&gt;<br>
&gt; --<br>
&gt; Frédéric Roux<br>
&gt; Postdoctoral Scientist, Marie-Curie fellow<br>
&gt; BCBL. Basque Center on Cognition, Brain % Language.<br>
&gt;<br>
&gt; <a href="mailto:f.roux@bcbl.eu">f.roux@bcbl.eu</a><br>
&gt; Tel: <a href="tel:%2B34%20943%20309%20300%20Ext%20211" value="+34943309300">+34 943 309 300 Ext 211</a><br>
&gt; Fax: <a href="tel:%2B34%20943%20309%20052" value="+34943309052">+34 943 309 052</a><br>
&gt;<br>
&gt; Legal disclaimer/Aviso legal/Lege-oharra: <a href="http://www.bcbl.eu/legal-disclaimer" target="_blank">www.bcbl.eu/legal-disclaimer</a><br>
&gt; ---------------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
&gt; but does not contain patient information, please contact the sender and properly<br>
&gt; dispose of the e-mail.<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></div></div></blockquote></div><br></div>