[SciPy-user] Array selection help

Jose Luis Gomez Dans josegomez at gmx.net
Wed Feb 11 08:56:48 EST 2009


Stéfan,

On Wednesday 11 February 2009 07:39:21 Stéfan van der Walt wrote:
> scipy.ndimage.mean(arr2, labels=arr1, index=np.unique(arr1))

True. The question is, how do I get the output of your code back into my 
original array? Presumably, there's another function that does that quickly?

Many thanks!
Jose

-- 
Remote Sensing Unit           | Env. Monitoring and Modelling Group
Dept. of Geography            | Dept. of Geography
University College London     | King's College London
Gower St, London WC1E 6BT UK  | Strand Campus, Strand, London WC2R 2LS UK
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01



More information about the SciPy-User mailing list