<html>
<body>
<blockquote type=cite class=cite cite="">> On 11.02.2014 14:08,
Daniele Nicolodi wrote:<br>
>> Hello,<br>
>><br>
>> I have two time series (2xN dimensional arrays) recorded on the
same<br>
>> time basis, but each with it's own dead times (and start and
end<br>
>> recording times).  I would like to obtain two time series
containing<br>
>> only the time overlapping segments of the data.<br>
>><br>
>> Does numpy or scipy offer something that may help in this?<br>
>><br>
>> I can imagine strategies about how to approach the problem, but
none<br>
>> that would be efficient. 
Ideas?</blockquote><font color="#800000"><br>
What is the gate/tach, ie pointer to start/stop?<br>
I work with both tachometers and EKGs and do similar windowing, usually
just using gates as slices so as not to make copies.<br>
I also found this interesting and bookmarked it
<a href="http://www.johnvinyard.com/blog/?p=268" eudora="autourl">
http://www.johnvinyard.com/blog/?p=268</a> which you might like.<br>
Just to be clear, you have 2 2D arrays and want a 4x(N-m) shape, like
mixing two stereo tracks?<br><br>
>>> a1 = np.arange(0,20).reshape((2,-1))<br>
>>> a2 = np.arange(5,25).reshape((2,-1))<br>
>>> np.concatenate((a1,a2))<br>
array([[ 0,  1,  2,  3,  4,  5,  6, 
7,  8,  9],<br>
       [10, 11, 12, 13, 14, 15, 16, 17, 18,
19],<br>
       [ 5,  6,  7, 
8,  9, 10, 11, 12, 13, 14],<br>
       [15, 16, 17, 18, 19, 20, 21, 22, 23,
24]])<br>
>>> st1 = 2<br>
>>> end1 = 7<br>
>>> st2 = 1<br>
>>> end2 = 6<br>
>>> np.concatenate((a1[:,st1:end1],a2[:,st2:end2]))<br>
array([[ 2,  3,  4,  5,  6],<br>
       [12, 13, 14, 15, 16],<br>
       [ 6,  7,  8,  9,
10],<br>
       [16, 17, 18, 19, 20]])<br><br>
<br>
- Ray<br>
</font></body>
</html>