Opened 14 years ago

Closed 8 years ago

#995 closed defect (invalid)

reading hdf5 in gdal 1.3.1

Reported by: blazkurnik@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: hdf
Cc: Mateusz Łoskot, antonio

Description (last modified by Mateusz Łoskot)

Problem to translate hdf5 format to other formats examples

gdal_translate -sds -of AAIGrid -co "TILED=YES" sat.h5 sat.ascii

error is:

szFilenname sat.h5
Segmentation fault
sat.h5 and other he5 formats are in on upper url

Change History (5)

comment:1 Changed 14 years ago by denis.nadeau@…

Blaz, Frank

I have fixed up the core dump problem for HDF5.  I have changed SUBDATASET so
that you can retrieve same dataset name.  I have found that sat.h5 have many
datasets called image_data.  To solve this, I added the HDF5 Path before the
dataset name.

Ex.:
    gdalinfo HDF5:"sat.h5"://image3/image_data

I tried Blaz command:
    gdal_translate -of AAIGrid -co "TILED=YES" sat.h5 sat.ascii

It worked fine.  Thanks for the URL it was very helpful.

Note: For hdf5 there are no "SDS" dataset so you do not need -sds flag

comment:2 Changed 14 years ago by blazkurnik@…

Dennis, Frank;


Thank you very much for help. However I have still a problem when using gdal
1.3.1 and Debian Linux. I have installed recently gdal, hdf5, grass, mapserver
from debian packeges. And It doesn't work when reading hdf5 with gdal.Ex:

gdalinfo HDF5:"sat.h5"://image3/image_data
Error:
GDAL: Auto register /usr/local/lib/gdalplugins/gdal_GRASS.so using
GDALRegister_GRASS.
szFilenname sat.h5
Segmentation fault


Do you thing that problem is with hdf5 installation?

Thx;

Blaz Kurnik



(In reply to comment #1)
> Blaz, Frank
> 
> I have fixed up the core dump problem for HDF5.  I have changed SUBDATASET so
> that you can retrieve same dataset name.  I have found that sat.h5 have many
> datasets called image_data.  To solve this, I added the HDF5 Path before the
> dataset name.
> 
> Ex.:
>     gdalinfo HDF5:"sat.h5"://image3/image_data
> 
> I tried Blaz command:
>     gdal_translate -of AAIGrid -co "TILED=YES" sat.h5 sat.ascii
> 
> It worked fine.  Thanks for the URL it was very helpful.
> 
> Note: For hdf5 there are no "SDS" dataset so you do not need -sds flag

comment:3 Changed 11 years ago by Mateusz Łoskot

Cc: Mateusz Łoskot added
Description: modified (diff)
Keywords: hdf added

comment:4 Changed 10 years ago by antonio

Cc: antonio added

comment:5 Changed 8 years ago by Even Rouault

Resolution: invalid
Status: reopenedclosed

Closing in the hope it is no longer valid

Note: See TracTickets for help on using tickets.