[gdal-dev] HDF5 problem

Lodron, Gerald Gerald.Lodron at joanneum.at
Mon Sep 23 00:40:49 PDT 2013




Hi

I have a .hdf file (Conventions=ODIM_H5/V2_1) which i want to open with gdalinfo.exe whereby i use gdal 1.10.1 with openjpeg 2.0.0 and the HDF plugin of HDF5 1.8.11 (compiled with zlib 1.2.8 and szip 2.1) on 64 bit compillation.

The gdalinfo output prints a lot of subdatasets (1 to 88) but when I want to open any subdataset I get many erros:


C:\gdal>gdalinfo.exe -sd 1 RAU-PPIVol-20121223-112505.hdf


ERROR 4: `HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data1/data' does not exist in the file system,
and is not recognised as a supported dataset name.

ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetDatasetDriver'.

ERROR 10: Pointer 'hDriver' is NULL in 'GDALGetDriverLongName'.

ERROR 10: Pointer 'hDriver' is NULL in 'GDALGetDriverShortName'.

Driver: (null)/(null)
ERROR 10: Pointer 'hDS' is NULL in 'GDALGetFileList'.

Files: none associated
ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterYSize'.

ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterXSize'.

Size is 0, 0
ERROR 10: Pointer 'hDS' is NULL in 'GDALGetProjectionRef'.

ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGCPCount'.

ERROR 10: Pointer 'hObject' is NULL in 'GDALGetMetadata'.

ERROR 10: Pointer 'hObject' is NULL in 'GDALGetMetadata'.

ERROR 10: Pointer 'hObject' is NULL in 'GDALGetMetadata'.

ERROR 10: Pointer 'hObject' is NULL in 'GDALGetMetadata'.

ERROR 10: Pointer 'hObject' is NULL in 'GDALGetMetadata'.

ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

Corner Coordinates:
Upper Left  ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

(    0.0,    0.0)
ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterYSize'.

Lower Left  ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

(    0.0,    0.0)
ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterXSize'.

Upper Right ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

(    0.0,    0.0)
ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterYSize'.

ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterXSize'.

Lower Right ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

(    0.0,    0.0)
ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterYSize'.

ERROR 10: Pointer 'hDataset' is NULL in 'GDALGetRasterXSize'.

Center      ERROR 10: Pointer 'hDS' is NULL in 'GDALGetGeoTransform'.

(    0.0,    0.0)
ERROR 10: Pointer 'hDS' is NULL in 'GDALGetRasterCount'.

ERROR 10: Pointer 'hDS' is NULL in 'GDALClose'.











Here is a part of the print of gdalinfo without the -sd option :
C:\gdal>gdalinfo.exe RAU-PPIVol-20121223-112505.hdf
Driver: HDF5/Hierarchical Data Format Release 5
Files: RAU-PPIVol-20121223-112505.hdf
Size is 512, 512
Coordinate System is `'
Metadata:
  Conventions=ODIM_H5/V2_1
  dataset1_data10_data_CLASS=IMAGE
  dataset1_data10_data_IMAGE_VERSION=1.2
  dataset1_data10_how_startazA=0.0494384765625 1.0491943359375 2.03
  dataset1_data10_how_stopazA=1.0162353515625 2.032470703125 3.0596
  dataset1_data10_what_gain=0.154070317745209
  dataset1_data10_what_nodata=-1
  dataset1_data10_what_offset=-19.7210006713867
...
<Blablabla>
...
 Subdatasets:
  SUBDATASET_1_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data1/data
  SUBDATASET_1_DESC=[360x400] //dataset1/data1/data (8-bit unsigned character)
  SUBDATASET_2_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data10/data
  SUBDATASET_2_DESC=[360x400] //dataset1/data10/data (8-bit unsigned character)
  SUBDATASET_3_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data11/data
  SUBDATASET_3_DESC=[360x400] //dataset1/data11/data (8-bit unsigned character)
  SUBDATASET_4_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data2/data
  SUBDATASET_4_DESC=[360x400] //dataset1/data2/data (8-bit unsigned character)
  SUBDATASET_5_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data3/data
  SUBDATASET_5_DESC=[360x400] //dataset1/data3/data (8-bit unsigned character)
  SUBDATASET_6_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data4/data
  SUBDATASET_6_DESC=[360x400] //dataset1/data4/data (8-bit unsigned character)
  SUBDATASET_7_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data5/data
  SUBDATASET_7_DESC=[360x400] //dataset1/data5/data (8-bit unsigned character)
  SUBDATASET_8_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data6/data
  SUBDATASET_8_DESC=[360x400] //dataset1/data6/data (32-bit floating-point)
  SUBDATASET_9_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data7/data
  SUBDATASET_9_DESC=[360x400] //dataset1/data7/data (8-bit unsigned character)
  SUBDATASET_10_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data8/data
  SUBDATASET_10_DESC=[360x400] //dataset1/data8/data (8-bit unsigned character)
  SUBDATASET_11_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset1/data9/data
  SUBDATASET_11_DESC=[360x400] //dataset1/data9/data (32-bit floating-point)
  SUBDATASET_12_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data1/data
  SUBDATASET_12_DESC=[348x400] //dataset2/data1/data (8-bit unsigned character)
  SUBDATASET_13_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data10/data
  SUBDATASET_13_DESC=[348x400] //dataset2/data10/data (8-bit unsigned character)
  SUBDATASET_14_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data11/data
  SUBDATASET_14_DESC=[348x400] //dataset2/data11/data (8-bit unsigned character)
  SUBDATASET_15_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data2/data
  SUBDATASET_15_DESC=[348x400] //dataset2/data2/data (8-bit unsigned character)
  SUBDATASET_16_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data3/data
  SUBDATASET_16_DESC=[348x400] //dataset2/data3/data (8-bit unsigned character)
  SUBDATASET_17_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data4/data
  SUBDATASET_17_DESC=[348x400] //dataset2/data4/data (8-bit unsigned character)
  SUBDATASET_18_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data5/data
  SUBDATASET_18_DESC=[348x400] //dataset2/data5/data (8-bit unsigned character)
  SUBDATASET_19_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data6/data
  SUBDATASET_19_DESC=[348x400] //dataset2/data6/data (32-bit floating-point)
  SUBDATASET_20_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data7/data
  SUBDATASET_20_DESC=[348x400] //dataset2/data7/data (8-bit unsigned character)
  SUBDATASET_21_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data8/data
  SUBDATASET_21_DESC=[348x400] //dataset2/data8/data (8-bit unsigned character)
  SUBDATASET_22_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset2/data9/data
  SUBDATASET_22_DESC=[348x400] //dataset2/data9/data (32-bit floating-point)
  SUBDATASET_23_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset3/data1/data
  SUBDATASET_23_DESC=[360x500] //dataset3/data1/data (8-bit unsigned character)
  SUBDATASET_24_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset3/data10/data
  SUBDATASET_24_DESC=[360x500] //dataset3/data10/data (8-bit unsigned character)
  SUBDATASET_25_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset3/data11/data
  SUBDATASET_25_DESC=[360x500] //dataset3/data11/data (8-bit unsigned character)
  SUBDATASET_26_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset3/data2/data
  SUBDATASET_26_DESC=[360x500] //dataset3/data2/data (8-bit unsigned character)
  SUBDATASET_27_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset3/data3/data
  SUBDATASET_27_DESC=[360x500] //dataset3/data3/data (8-bit unsigned character)
  SUBDATASET_28_NAME=HDF5:"RAU-PPIVol-20121223-112505.hdf"://dataset3/data4/data
...
<Blablabla>


If someone has a suggestion how to read in the images it would be nice to tell me or give me a hint where to find help.....

Best regards
_________________________________________________________________

JOANNEUM RESEARCH Forschungsgesellschaft mbH

DIGITAL - Institute for Information and Communication Technologies
Steyrergasse 17, 8010 Graz, Austria

phone: +43 316 876-1751
fax: +43 316 8769-1751
e-mail: gerald.lodron at joanneum.at<mailto:gerald.lodron at joanneum.at>
web: www.joanneum.at/digital<http://www.joanneum.at/digital>
_________________________________________________________________

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.

Please consider the environment before printing this page.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130923/b563a7e0/attachment-0001.html>


More information about the gdal-dev mailing list