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
aarray-like

first array

barray-like

second array

Returns
outnumpy.ndarray

interweaved array