Ticket #2462 (closed defect: fixed)
Incorrect subdatasets handling in python bindings
| Reported by: | antonio | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.4 |
| Component: | GDAL_Raster | Version: | 1.5.2 |
| Severity: | normal | Keywords: | HDF5 |
| Cc: |
Description
I'm using GDAL 1.5.2 in Debian Sid x64 I have an HDF5 file with 2 datasets "/MBI" and "/QLK":
$ gdalinfo -nogcp -nomd -stats test-subdatasets.h5 Driver: HDF5/Hierarchical Data Format Release 5 Files: test-subdatasets.h5 Size is 512, 512 Coordinate System is `' Subdatasets: SUBDATASET_0_NAME=HDF5:"test-subdatasets.h5"://MBI SUBDATASET_0_DESC=[200x200] //MBI (8-bit unsigned integer) SUBDATASET_1_NAME=HDF5:"test-subdatasets.h5"://QLK SUBDATASET_1_DESC=[10x10] //QLK (8-bit unsigned character) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 512.0) Upper Right ( 512.0, 0.0) Lower Right ( 512.0, 512.0) Center ( 256.0, 256.0)
When I open the dataset from python I only get on subdataset:
Python 2.5.2 (r252:60911, Jun 25 2008, 18:03:42) [GCC 4.3.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from osgeo import gdal >>> d = gdal.Open('test-subdatasets.h5') >>> d.GetSubDatasets() [('HDF5:"test-subdatasets.h5"://QLK', '[10x10] //QLK (8-bit unsigned character)')]
The "/MBI" subdataset is missing.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

