Seems the problem was indeed with the endian. Works like a charm now, thank you all for the quick replies! Olli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101104/d2dbb294/attachment.html>