Hi, thanks for your help. It looks much nicer now. Additionally I found a module in the scientific python package, which does exactly what I want, i.e. reading an array or writing it back to disk. Thanks a lot, Andreas.