[Gdal-dev] Re: Gdal-dev Digest, Vol 34, Issue 3
Michael Sumner
mdsumner at utas.edu.au
Thu Mar 1 22:11:02 EST 2007
Hello, I don't recognize the template of your subdataset: perhaps you
are referencing it incorrectly?
I don't have access to any HDF5 files, but one HDF4 file I have with
several datasets like this:
SUBDATASET_1_NAME=HDF4_SDS:UNKNOWN:"200201h18ea-gdm.hdf":0
SUBDATASET_1_DESC=[2048x1024] Sea Surface Temperature (8-bit integer)
SUBDATASET_2_NAME=HDF4_SDS:UNKNOWN:"200201h18ea-gdm.hdf":1
SUBDATASET_2_DESC=[2048x1024] Number of Observations per Bin (8-bit
integer)
SUBDATASET_3_NAME=HDF4_GR:UNKNOWN:"200201h18ea-gdm.hdf":0
SUBDATASET_3_DESC=[2048x1024x1] Raster Image #0 (8-bit unsigned character)
SUBDATASET_4_NAME=HDF4_GR:UNKNOWN:"200201h18ea-gdm.hdf":1
SUBDATASET_4_DESC=[2048x1024x1] Raster Image #1 (8-bit unsigned character)
I can access one of these by using
gdalinfo HDF4_GR:UNKNOWN:"200201h18ea-gdm.hdf":1
gdal_translate HDF4_GR:UNKNOWN:"200201h18ea-gdm.hdf":1 out.tif
Cheers, Mike.
> ------------------------------------------------------------------------
>
> Subject:
> [Gdal-dev] Converting HDF5 to GeoTiff
> From:
> YISAK SULTAN <yisaksultan at yahoo.com>
> Date:
> Thu, 1 Mar 2007 14:50:36 -0800 (PST)
> To:
> gdal-dev at lists.maptools.org
>
> To:
> gdal-dev at lists.maptools.org
>
>
> Hello,
>
> I am trying to convert a file in HDF5 format to GeoTiff format. But I
> am having a problem in using gdal_translate and gdalinfo in accessing
> the subdataset in the HDF5 file. After running the command on my HDF5
> file ( gdalinfo HDFTese.h5), the name of the subdataset I want to
> access is written out as
>
> SUBDATASET_0_NAME=HDF:"HDFTest.h5"://image1/data
> SUBDATASET_0_DESC=[480x480] //image/data (8-bit integer)
>
> So I tried to access this dataset by typing
> HDF5:"HDFTest.h5"://image1/data as in
>
> gdalinfo HDF5:"HDFTest.h5"://image1/data
> gdal_translate -of GTiff HDF5:"HDFTest.h5"://image1/data HDFTest.tif
>
> Unfortunately I get this error message for both commands and the
> program crashes
>
> szFilenname HDFTest.h5
> Open!!
>
> Can anyone please help me out with this problem. I desperately need
> this to work.
>
> Thanks,
> Yisak
>
>
>
>
>
More information about the Gdal-dev
mailing list