[DebianGIS-dev] Bug#437098: Bug#437098: hdf4 amd64 compatibility to 32-bit

Francesco P. Lovergine frankie at debian.org
Mon May 5 08:18:19 UTC 2008


On Sun, May 04, 2008 at 04:00:27PM +0700, Ivan Shmakov wrote:
> >>>>> T Dinter <dinter at iup.physik.uni-bremen.de> writes:
> 
>  > Package: libhdf4g
>  > Version: 4.1r4-21
> 
>  > Dear hdf4 maintainers, since i have an amd64 system, i have problems
>  > with hdf4 files create by a 32-bit system (e.g. satellite data MODIS,
>  > MISR ....). I sent you two little hdf files create on a standart
>  > 32-bit and the amd64 system with example source (sd_rd.c) from hdf
>  > web site. And if you look with a hexeditor into the files, you see
>  > that the bytes of the dataset and dimensions are swapped. So I guess
>  > this is a problem of compiler flags (-DBIG_LONGS -DSWAP).
> 
> 	I could probably confirm that this bug is there as of
> 	4.1r4-18.1_amd64 (etch), e. g.:
> 
> amd64 $ ncdump-hdf -h MOD09GHK.A2004186.h20v09.005.2007045162226 
> netcdf MOD09GHK.A2004186.h20v09.005.2007045162226 {
> dimensions:
> 	YDim_MOD_Grid_L2g_2d = 1611202560 ;
> 	XDim_MOD_Grid_L2g_2d = 1611202560 ;
> 	Total_Additional_Observations = 1068902144 ;
> 	Data_Rows = 1611202560 ;
> 
> ...
> amd64 $ 
> 
> 	While it should instead read:
> 
> i386 $ ncdump-hdf -h /tmp/MOD09GHK.A2004186.h20v09.005.2007045162226.hdf 
> netcdf MOD09GHK.A2004186.h20v09.005.2007045162226 {
> dimensions:
> 	YDim_MOD_Grid_L2g_2d = 2400 ;
> 	XDim_MOD_Grid_L2g_2d = 2400 ;
> 	Total_Additional_Observations = 2602559 ;
> 	Data_Rows = 2400 ;
> 
> ...

Thanks for the hints, I will see if it was an already managed issue in
current hdf4

-- 
Francesco P. Lovergine





More information about the Pkg-grass-devel mailing list