Memmory error from MNE-Python

Dear All,

When I run a script to remove environmental noise, I met the memory error.
The information as following:

*MemoryError Traceback (most recent call
last)/usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in
execfile(fname, *where) 202 else: 203
filename = fname--> 204 __builtin__.execfile(filename,
*where)/home/imenb101/Forward and Inverse Problem/EmptyRoomProcessing.py in
<module>() 52 #Remove the environmental noises using emptyroom
signals 53 empty_proj = mne.compute_proj_raw(raw_empty)---> 54
raw_cleaned_enviro = raw.copy().add_proj(empty_proj).apply_proj() 55
raw_cleaned_enviro.save(subject_path+'/MEG/ssp_cleaned_%s.fif'
%(raw_basename), overwrite=True)#save the raw data without the
environmental noise 56
/usr/local/lib/python2.7/dist-packages/mne-0.8.git-py2.7.egg/mne/fiff/proj.pyc
in apply_proj(self) 131 data = data()
132 else:--> 133 data = np.dot(self._projector,
data) 134 break 135 logger.info
<http://logger.info>('SSP projectors applied...')MemoryError: *

Can anyone give me some suggestions? Thanks!
Best wishes,
Qunxi Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140218/1ebbc5c6/attachment.html

Qunxi,

you should check your RAM available using e.g. the 'htop' command.
If you execute the lines listed below a full copy of your raw data
will be produced.
Also it's not recommended to explore SSP at the raw stage. I would
postpone this to the epochs or evoked stage.

HTH,
Denis

hi,

@denis I think Qunxi is trying to estimate EOG/ECG SSPs.

option 1:

buy more RAM

option 2:

process only a chunk of data

HTH
Alex