spacepy.toolbox.interweave

spacepy.toolbox.interweave(a, b)[source]

given two array-like variables interweave them together. Discussed here: http://stackoverflow.com/questions/5347065/interweaving-two-numpy-arrays

Parameters:

a : array-like

first array

b : array-like

second array

Returns:

out : numpy.ndarray

interweaved array