thanks Sturl, your second code works well although I had to divide the vector elements through 128 to get just the binaries
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion