In [85]: bi = (f.bolo_indices[np.newaxis,:]+
ones([7751,1])).astype('int')
In [86]: whc = (whscan[:,np.newaxis] + ones([1,107])).astype('int')
In [87]: array2d[whc,bi] = temp2d
I thought this had worked, but the values didn't seem to be going to the
right places when I re-examined them.
On Wednesday 29 October 2008 01:44:06 Adam wrote:
In [62]: temp2d = reshape(array3d,[23*337,107])
In [63]: temp2d2 = zeros([23*337,144])
In [64]: temp2d2[:,f.bolo_indices] = temp2d
In [65]: array2d[whscan,:] = temp2d2
This works, but it feels wrong to me: I think there should be a way to
Hi numpy group,
I have a problem I know there is an elegant solution to, but I can't
wrap my head around the right way to do the indexing.
The problem:
I have a 2D array that has been chopped up into 3 dimensions - it was [ time
X detectors ], it is now [ scans X time X detectors ]. During