On Thu, 1 Sep 2011, 01:17:45 CEST, questions anon <questions.a...@gmail.com> wrote:
> Firstly just make them zeros and ones, for example if the values in the > array are less than 100 make them 0 and if greater than 100 make them 1. > And then finally sum them together. > I have attempted a few methods, see code below. Any feedback will be > greatly appreciated. *If* you do not need the array after you summed you can do something like below (untested!): big_array = N.ma.concatenate(all_FFDI) rusult = 0 for i in big_array: if i >= 100: result += 1 greets sander
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor