[gdal-dev] can't open HDF5 subdatasets

Antonio Valentino antonio.valentino at tiscali.it
Mon Mar 15 04:15:37 EDT 2010


Hi Ben, 

Il giorno Mon, 15 Mar 2010 10:13:49 +0800
benbendor <dor_ben2000 at hotmail.com> ha scritto:

> 
> Hello:
> 
>  
> 
> I think is woking well by using GDALINFO to  open hdf5 image,like
> this:
> 
>    I:\gdalinfo
> Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_20100129_0115
> _0250M_MS.h5 Driver: HDF5/Hierarchical Data Format Release 5
> Files:
> Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_20100129_0115_0250M_MS.
> h5 Size is 512, 512
> Coordinate System is `'
> Subdatasets:
>   SUBDATASET_1_NAME=HDF5:"Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_G
> BAL_L1_20100129_0115_0250M_MS.h5"://BB_DN_average
> SUBDATASET_1_DESC=[5x8000] //BB_DN_average (32-bit floating-point)
> SUBDATASET_2_NAME=HDF5:"Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_20100129_0115_0250M_MS.h5"://EV_250_Emissive
> SUBDATASET_2_DESC=[8000x8192] //EV_250_Emissive (16-bit unsigned
> integer)
> SUBDATASET_3_NAME=HDF5:"Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_20100129_0115_0250M_MS.h5"://EV_250_RefSB_b1
> SUBDATASET_3_DESC=[8000x8192] //EV_250_RefSB_b1 (16-bit unsigned
> integer) …… ………. 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)
>  
>  but wen I trying to open a subdataset ,it's can't work well,why?
> I:\gdalinfo
> HDF5:"Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_2010012
> 9_0115_0250M_MS.h5"=BB_DN_average ERROR 4:
> `HDF5:Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_20100129_0115_0
> 250M_MS.h5=BB_DN_average' does not exist in the file system, and is
> not recognised as a supported dataset name. 
> gdalinfo failed - unable to open
> 'HDF5:Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI
> _GBAL_L1_20100129_0115_0250M_MS.h5=BB_DN_average'. regards
> ben

I think it should be 

$ gdalinfo HDF5:Z_SATE_C_BAWX_20100129130049_P_FY3A_MERSI_GBAL_L1_20100129_0115_0250M_MS.h5://BB_DN_average

why do you use the "=" separator?

best regards


-- 
Antonio Valentino


More information about the gdal-dev mailing list