Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Opening HDF zlib compressed files
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jpaulini  
View profile  
 More options Aug 1 2011, 9:17 am
From: jpaulini <jpaul...@gmail.com>
Date: Mon, 1 Aug 2011 06:17:23 -0700 (PDT)
Local: Mon, Aug 1 2011 9:17 am
Subject: Opening HDF zlib compressed files
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ping  
View profile  
 More options Aug 2 2011, 3:31 am
From: ping <hanlie.pretor...@gmail.com>
Date: Tue, 2 Aug 2011 00:31:11 -0700 (PDT)
Local: Tues, Aug 2 2011 3:31 am
Subject: Re: Opening HDF zlib compressed files
Hi,

You could try an os.system call to the 7-Zip executable on Windows.
According to the website (http://www.7-zip.org/), it can decompress .Z
files.

Hanlie

On Aug 1, 3:17 pm, jpaulini <jpaul...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan F Paulini  
View profile  
 More options Aug 2 2011, 8:06 am
From: Juan F Paulini <jpaul...@gmail.com>
Date: Tue, 2 Aug 2011 09:06:46 -0300
Local: Tues, Aug 2 2011 8:06 am
Subject: Re: [python-gis-sig] Re: Opening HDF zlib compressed files

Thank you, ping. That was all I needed (my next move should be migrating my
os to linux...)

I had WinRAR, but I couldn't command line a .Z file decompression..

It's not an elegant solution, but it worked fine. I had very frustrating
moments trying to inflate the HDF.Z files using python zlib library...

2011/8/2 ping <hanlie.pretor...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oliver Tonnhofer  
View profile  
 More options Aug 2 2011, 8:37 am
From: Oliver Tonnhofer <o...@omniscale.de>
Date: Tue, 2 Aug 2011 14:37:13 +0200
Local: Tues, Aug 2 2011 8:37 am
Subject: Re: [python-gis-sig] Re: Opening HDF zlib compressed files

On 02.08.2011, at 14:06, Juan F Paulini wrote:

> Thank you, ping. That was all I needed (my next move should be migrating my os to linux...)

> I had WinRAR, but I couldn't command line a .Z file decompression..

> It's not an elegant solution, but it worked fine. I had very frustrating moments trying to inflate the HDF.Z files using python zlib library…

You could use the Unix command `file` to see what type that file is. Maybe it is not a deflated file but a Zip file?

Regards,
Oliver

--
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan F Paulini  
View profile  
 More options Aug 2 2011, 9:13 am
From: Juan F Paulini <jpaul...@gmail.com>
Date: Tue, 2 Aug 2011 10:13:38 -0300
Local: Tues, Aug 2 2011 9:13 am
Subject: Re: [python-gis-sig] Re: Opening HDF zlib compressed files

Hi Oliver,

Thanks for your answer. I miss unix commands, I'm in a windows machine right
now (but I don´t know if it will be for al looong time more)...

Anyway, it's not a zip file. I know that is a unix compressed file. 7zip was
fine for uncompressing it using the command line option..

2011/8/2 Oliver Tonnhofer <o...@omniscale.de>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »