[Numpy-discussion] Overlapping time series

RayS rays at blue-cove.com
Tue Feb 11 09:04:12 EST 2014


> > On 11.02.2014 14:08, Daniele Nicolodi wrote:
> >> Hello,
> >>
> >> I have two time series (2xN dimensional arrays) recorded on the same
> >> time basis, but each with it's own dead times (and start and end
> >> recording times).  I would like to obtain two time series containing
> >> only the time overlapping segments of the data.
> >>
> >> Does numpy or scipy offer something that may help in this?
> >>
> >> I can imagine strategies about how to approach the problem, but none
> >> that would be efficient.  Ideas?


or?

st1 = 5
 >>> np.concatenate((a1[:,st1:],a2[:,:a1.shape[1]-st1]))
array([[ 5,  6,  7,  8,  9],
        [15, 16, 17, 18, 19],
        [ 5,  6,  7,  8,  9],
        [15, 16, 17, 18, 19]])

- Ray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140211/dca7aaea/attachment.html>


More information about the NumPy-Discussion mailing list