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

Home » Public Forums » archive » Looking for IDL Structures to Python compatible HDF5 Examples
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Looking for IDL Structures to Python compatible HDF5 Examples [message #91900 is a reply to message #91818] Wed, 09 September 2015 13:28 Go to previous messageGo to previous message
eben.pendleton is currently offline  eben.pendleton
Messages: 2
Registered: September 2015
Junior Member
Thanks Mark and kallisthene. The code and table viewer you have provided work great. Many thanks.

One question however: I'm having trouble with the chunksize when using an iterator to restore the data in Python. The python error is ValueError: Shape of passed values is (1, 141887), indices imply (1, 283774)
whereas my structure is 283774 and my chuck size is 141887 (283774/2) Do I have to adjust something when creating the databuffer to get the indices to work?

Thanks,
Eben


On Wednesday, September 2, 2015 at 3:20:38 AM UTC-4, kallisthene wrote:
> Le mardi 1 septembre 2015 19:49:26 UTC+2, superchromix a écrit :
>> hi Eben,
>>
>> HDF5 Tables are a specific format of HDF5 file, and I suspect that's what you're running into here - you are not really creating a "table" according to the HDF5 Tables API. IDL has no native interface for writing HDF5 tables, however I have written an IDL library to do this.
>>
>> you can look here:
>>
>> http://www.github.com/superchromix/wmb_lib
>>
>> the library does not have great documentation, but look in the directory
>>
>> source/hdf5/h5tb
>>
>> for the file wmb_h5tb_examples.pro, and this will show you how to use the library to create HDF5 compliant tables from IDL.
>>
>> Another method of testing your HDF5 files: try to open them with HDF View, a freely distributed program for viewing all types of HDF5 data.
>>
>> Mark
>
> You might also use the superior, in my opinion, Python-based Vitables
>
>
> Best
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dialog_pickfile /DIRECTORY too low on the screen
Next Topic: converting netcdf data format to hdf5

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

Current Time: Wed Oct 08 11:00:22 PDT 2025

Total time taken to generate the page: 0.00224 seconds