comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Writing compressed HDF5 files with IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Writing compressed HDF5 files with IDL [message #69846] Wed, 17 February 2010 04:09 Go to next message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Feb 16, 4:16 pm, Carsten Lechte <c...@toppoint.de> wrote:
> Thanks for your reply.
>
> Maarten wrote:
>> h5repack --native --latest --filter=GZIP=6 file.h5 file-out.h5
>
> Yes, that's what I am doing at the moment, but it is annoying to
> write gigabytes of data, then compress it, then delete it.

Have a look at the h5d_create function. I just checked for IDL version
6.4, and it has a gzip named parameter. Using this (and other
parameters will create compressed datasets.

Maarten
Re: Writing compressed HDF5 files with IDL [message #69850 is a reply to message #69846] Tue, 16 February 2010 07:16 Go to previous messageGo to next message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
Thanks for your reply.

Maarten wrote:
> h5repack --native --latest --filter=GZIP=6 file.h5 file-out.h5

Yes, that's what I am doing at the moment, but it is annoying to
write gigabytes of data, then compress it, then delete it.


chl
Re: Writing compressed HDF5 files with IDL [message #69851 is a reply to message #69850] Tue, 16 February 2010 07:08 Go to previous messageGo to next message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Feb 16, 2:50 pm, Carsten Lechte <c...@toppoint.de> wrote:
> Has anyone managed to write (gzip) compressed HDF5 files with IDL?
> My guess is that it is not possible with IDL 6.4.
>
> The help for the high-level function H5_CREATE does not mention
> compression, and the low-level functions for the H5P_* interface
> are noticable only for their absence. The H5P_* functions are
> necessary for setting the compression options.

HDF5 support was introduced quite slowly, it took RSI/ITT a few
iterations to get it right (well, complete). Your best bet is to
compress after creation.

In the shell (unix, right?) you can spawn the following. h5repack is
part of hte HDF5 library distribution. Be sure to read the help of the
tool; note that --latest may prevent IDL from reading the file (if you
have HDF5 1.8 installed).

h5repack --native --latest --filter=GZIP=6 file.h5 file-out.h5

Best,

Maarten.
Re: Writing compressed HDF5 files with IDL [message #69967 is a reply to message #69846] Fri, 19 February 2010 12:33 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
Maarten wrote:
> Have a look at the h5d_create function. I just checked for IDL version [...]

Good find! I will try that approach.


chl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: USB dlm for IDL?
Next Topic: Re: Save file creation rules of the road

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:43:53 PDT 2025

Total time taken to generate the page: 0.00721 seconds