Hi all,

I'm working with pyhdf to open TRMM Rainfall HDF files.  My final
pourpose is converting them to a numpy array.

Once I downloaded them from 
ftp://disc2.nascom.nasa.gov/ftp/data/s4pa//TRMM_L3/TRMM_3B42
using an automated script. I've to manually decompress the donwloaded
files using WinRAR. Then, processing de inflated files to get the
numpy array. So I wonder how can I automate the whole process....

The downloaded HDF files ar Z compressed, I've been trying to inflate
them using zlib, but it seems that python zlib implemementation can't
detect header information.

Here are the questions:
a- Have you faced the same problem?
a- Somebody knows a better way to do it? (getting numpy arrays from
the HDF.Z files)
b- If I were in a unix machine, I'll call decompress using a system
call, but I'm in a Windows machine. If you know a compress
implementation on windows, it also will help a lot.

Environment:
Python 2.5
Windows 7 x64
pyhdf (SD)
numpy

Thanks in advance.



Reply via email to