I want to translate the hdf4 to tif ,and use the grass to conert this tif to its own format, then I can contiune my next work, I use the FWTools2.2.8 (which is installed in the F disk.)to handle this,after config the environment ,I run the command "gdalinfo d:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf", it worked , the key inofrmation is : =============== ............... ............... Subdatasets: SUBDATASET_1_NAME=HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_500_RefSB SUBDATASET_1_DESC=[5x4060x2708] EV_500_RefSB MODIS_SWATH_Type_L1B (16-bit unsigned integer) SUBDATASET_2_NAME=HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_500_RefSB_Uncert_Indexes SUBDATASET_2_DESC=[5x4060x2708] EV_500_RefSB_Uncert_Indexes MODIS_SWATH_Type_L1B (8-bit unsigned integer) SUBDATASET_3_NAME=HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB SUBDATASET_3_DESC=[2x4060x2708] EV_250_Aggr500_RefSB MODIS_SWATH_Type_L1B (16-bit unsigned integer) SUBDATASET_4_NAME=HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB_Uncert_Indexes SUBDATASET_4_DESC=[2x4060x2708] EV_250_Aggr500_RefSB_Uncert_Indexes MODIS_SWATH_Type_L1B (8-bit unsigned integer) SUBDATASET_5_NAME=HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB_Samples_Used SUBDATASET_5_DESC=[2x4060x2708] EV_250_Aggr500_RefSB_Samples_Used MODIS_SWATH_Type_L1B (8-bit integer) =============== and now (for example )I want to get the subdataset 4,and translate it to geotiff,before run the gdal_translate I run the gdalinfo again to get the information of it:" gdalinfo HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB_Uncert_Indexes" I got the error messages as follows: ======================== C:\Documents and Settings\Administrator>gdalinfo HDF4_EOS:EOS_SWATH:"D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf":MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB_Uncert_Indexes ERROR 4: `HDF4_EOS:EOS_SWATH:D:\data\HDF\MOD02HKM.A2008275.0245.005.2008275112555.hdf:MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB_Uncert_Indexes' does not exist in the file system,and is not recognised as a supported dataset name. gdalinfo failed - unable to open 'HDF4_EOS:EOS_SWATH:D:\data\HDF\MOD02HKM.A2008275.0245.005.20082751 12555.hdf:MODIS_SWATH_Type_L1B:EV_250_Aggr500_RefSB_Uncert_Indexes'. Open GDAL Datasets: 1 N DriverIsNULL -1 512x512x0 ======================== I want to know why?and if I put the hdf data under the F:\anzhuang\FWTools 2.2.8\bin, I can get the correct result......
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev