From: Hanneke S. <H.S...@ge...> - 2004-04-06 10:25:39
|
Dear Francesc (and others), I need help on the following: For my research I have to edit radar images. These images are stored in HDF5 format. However when I want to open the file I get the error code as printed below. The radar image is stored in /image1/image_data and consist of 8-bit data, stored in a 2-dimensional array of 256 rows x 256 columns. I want to save only the image data in a matrix. I assume that the image dataset is not yet implemented in pytables. Could you tell me if this can be done easily or could you maybe tell me how I could do this "myself" (I have some colleagues at university who are skilled in python.) If you want I can send you an example of a radar h5-file. Kind regards, Hanneke Schuurmans >>> from numarray import * >>> from tables import* >>> f=openFile('I:/HDF5/radar.h5') C:\Python23\lib\site-packages\tables\File.py:188: UserWarning: 'I:/HDF5/radar.h5' does exist, is an HDF5 file, but has not a PyTables format. Trying to guess what's here from HDF5 metadata. I can't promise you getting the correct objects, but I will do my best!. warnings.warn( \ Info: Can't deal with multidimensional attribute 'geo_product_corners' in node 'geographic'. Info: Can't deal with multidimensional attribute 'radar_location' in node 'radar1'. Info: Can't deal with multidimensional attribute 'radar_location' in node 'radar2'. C:\Python23\lib\site-packages\tables\Group.py:229: UserWarning: Class ID 'IMAGE' for Leaf /image1/image_data is unknown and will become <UnImplemented> type. (class_, self._g_join(name)), UserWarning) >>> f File(filename='I:/HDF5/radar.h5', title=None, mode='r', trMap={}, rootUEP='/', filters=Filters()) / (Group) None /geographic (Group) None /image1 (Group) None /image1/image_data (UnImplemented(256, 256), zlib(9)) None NOTE: <The UnImplemented object represents a PyTables unimplemented dataset present in the 'I:/HDF5/radar.h5' HDF5 file. If you wanna see this kind of HDF5 dataset implemented in PyTables, please, contact the developers.> /overview (Group) None /radar1 (Group) None /radar2 (Group) None /image1/calibration (Group) None /image1/statistics (Group) None /geographic/map_projection (Group) None ir. J.M. (Hanneke) Schuurmans (PhD student) Department of Physical Geography Faculty of Geosciences, Utrecht University, The Netherlands E-mail: h.s...@ge... Telephone: +31(0)30-2532988 (direct), +31(0)30-2532749 (secretary) Fax: +31(0)30-2531145 Visiting address: Heidelberglaan 2, Utrecht Postal address: P.O.Box 80.115, 3508 TC Utrecht |