Hi, I tried both these solutions and the one that Jose suggested gives the following error:
'691200 items requested but only 576000 read ValueError: total size of new array must be unchanged' Soctt's solution also gives the ValueError, so I guess there's either more to the file than I thought (i.e. a header) or less (i.e. missing values). I'll try to find out more about the file format. Thanks again for the help. Hanlie On Mar 4, 2:35 pm, Scott Sinclair <[email protected]> wrote: > >On 4 March 2010 14:30, Scott Sinclair <[email protected]> wrote: > >>On 4 March 2010 10:00, ping <[email protected]> wrote: > >> I'm trying to read TRMM precipitation data from a binary file that I > >> donwloaded from NASA's web site. The information I have about the file > >> is: > > Something like the following should get you started: > > > import numpy as np > > You also need > > import sys > > Cheers, > Scott
