[Eeglablist] reading only half of large .cnt file

Kathrin Müsch kathrin.muesch at gmail.com
Wed Oct 29 15:07:49 PDT 2014


Dear Makoto,

Thanks for getting back to me. I've found a workaround for this problem, which I haven’t had time to post on the list, yet. So an investigation might not be necessary anymore.

I actually tried to use FieldTrip that uses the eeglab low-level loadcnt.m function as well. FieldTrip checks if the number of samples are outside the range of the value provided by nums, what resulted in the error message, when I set the values manually.

I was able to load the complete file by just running the low-level function itself and providing h.numsamples as ldnsmaples. However, if I don’t provide the first and last samples, only half of the file will be loaded.

Thanks,
Kathrin

On Oct 29, 2014, at 4:27 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu> wrote:

> Dear Ramon,
> 
> This looks like an error quite well investigated by the reporter (thank you Kathrin). Could you investigate it?
> 
> Makoto
> 
> On Thu, Oct 23, 2014 at 4:06 PM, Kathrin Müsch <kathrin.muesch at gmail.com> wrote:
> Dear all,
> 
> I am trying to load a large 32-bit .cnt file acquired with Neuroscan’s Scan 4.5 software (5000 Hz sampling rate). However, only about half of my data will be loaded. The datafile is indeed very large (8 GB).
> 
> The total number of samples in the datafile is read out correctly (h.numsamples in line 259 = 17,000,000) but only 8,000,000 sample are read (because of the specification of “nums” in line 327). I also get an error message when I try to manually set sample1 and ldnsamples to the desired values because it falsely assumes that my last sample is 8,000,000.
> 
> Is this a bug in the script because nums (line 327) is set to a false value or do I need to find a workaround? I also tried to use the memmapfile option without any luck.
> 
> Any help would be appreciated,
> Kathrin
> 
> --
> Kathrin Müsch, Ph.D.
> Department of Psychology
> University of Toronto
> Toronto, Canada
> www.honeylab.org
> 
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
> 
> 
> 
> -- 
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20141029/a81f617d/attachment.html>


More information about the eeglablist mailing list