[gdal-dev] ``HDF4Image: Can't get the list of geolocation maps in swath mod07''

Andrey Kiselev dron at ak4719.spb.edu
Tue Dec 11 05:10:55 EST 2007


On Tue, Dec 11, 2007 at 02:52:01PM +0600, Ivan Shmakov wrote:
> $ nl -ba gdal/frmts/hdf4/hdf4imagedataset.cpp 
> ...
>   1641	    papszGeolocations = CSLTokenizeString2( pszGeoList, ",",
>   1642	                                            CSLT_HONOURSTRINGS );
>   1643	    // Read geolocation data
>   1644	    nDimMaps = SWnentries( hSW, HDFE_NENTMAP, &nStrBufSize );
> 
> 	Shouldn't there `HDFE_NENTGFLD' be used instead?
> 
>   1645	    pszDimMaps = (char *)CPLMalloc( nStrBufSize + 1 );
>   1646	    paiOffset = (int32 *)CPLMalloc( nDimMaps * sizeof(int32) );
>   1647	    memset( paiOffset, 0, nDimMaps * sizeof(int32) );
>   1648	    paiIncrement = (int32 *)CPLMalloc( nDimMaps * sizeof(int32) );
>   1649	    memset( paiIncrement, 0, nDimMaps * sizeof(int32) );
> ...
> $ 
> 
> 	Perhaps, it causes the following:
> 
> $ CPL_DEBUG=ON GEOL_AS_GCPS=FULL \
>       gdal_translate \
>           'HDF4_EOS:EOS_SWATH:"MOD07_L2.hdf":mod07:Tropopause_Height' \
>           mod07-l2.tropopause-height.tiff 
> ...
> HDF4Image: Can't get the list of geolocation maps in swath mod07

Ivan,

Could you make your HDF file available? I think the real problem is
somwhere else.

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517


More information about the gdal-dev mailing list