[MSNoise] MemoryError

Thomas Lecocq thomas.lecocq at oma.be
Tue Nov 26 15:17:44 UTC 2013


Xiao,

Le 26/11/2013 16:16, Wang, Xiao a écrit :
> Hi Thomas,
>
> Thanks for the explanation. I downsampled cc_sampling_rate to 20, then it works.
>
> When you mentioned "100 (samples) * 86400 (seconds) * 22 (stations) = 190.080.000 samples", the "100 (samples)" means cc_sampling_rate or miniseed file sample rate?
the cc_sampling_rate is the sampling rate at which you'll calculate the 
CCF, independent of the sample rate in your miniseed files.

Cheers,

Thom
>
> Thanks,
>
> Xiao
>
>
> -----Original Message-----
> From: msnoise-bounces at mailman-as.oma.be [mailto:msnoise-bounces at mailman-as.oma.be] On Behalf Of Thomas Lecocq
> Sent: 26 November 2013 10:37
> To: msnoise at mailman-as.oma.be
> Subject: Re: [MSNoise] MemoryError
>
> Xiao,
>
> You are creating an array of :
>
> 100 (samples) * 86400 (seconds) * 22 (stations) = 190.080.000 samples.
> On my machine, a float (1.0 e.g.) is 24 bytes, so your array will be :
> 4.350 MB (=4GB), which is too big, even on my machine.
>
> You should downsample your data (cc_sampling_rate) to something closer to 2 times the High frequency, to save memory: 10 Hz would be enough.
>
> Let me know,
>
> Thomas
>
> Le 26/11/2013 11:27, Wang, Xiao a écrit :
>> Hi Thom,
>>
>> I got 22 stations, miniseed sample rate is 100Hz, cc_sampling_rate is
>> 100.0, mov_stack is 5, days between startdate and enddate is one
>> month, and ZZ correlation is enabled only. The filter parameters are:
>> Low=0.1, Mwcs low=0.2, Mwcs high=0.6, High=0.7, Rms threshold=0.0,
>> Mwcs wlen=50.0 and Mwcs step=10.0
>>
>> Xiao
>>
>> -----Original Message-----
>> From: msnoise-bounces at mailman-as.oma.be
>> [mailto:msnoise-bounces at mailman-as.oma.be] On Behalf Of Thomas Lecocq
>> Sent: 25 November 2013 18:06
>> To: msnoise at mailman-as.oma.be
>> Subject: Re: [MSNoise] MemoryError
>>
>> Dear Xiao,
>>
>> How many stations pairs are you processing simultenously ? 1 day of data ? 20Hz ? Please provide more details, it'll help !
>>
>> Cheers
>>
>> Thom
>>
>> Le 25/11/2013 18:39, Wang, Xiao a écrit :
>>> When I ran python s03compute_cc.py  (msnoise version1.2), I encountered memoryerror. Any idea?
>>>
>>> The following is output:
>>>
>>> Traceback (most recent call last):
>>>      File "s03compute_cc.py", line 191, in <module>
>>>        tramef_Z = np.zeros((len(stations), len(TimeVec))) MemoryError
>>>
>>> Thanks,
>>>
>>> Xiao
>>>
>>> _______________________________________________
>>> MSNoise mailing list
>>> MSNoise at mailman-as.oma.be
>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise at mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise at mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise



More information about the MSNoise mailing list