[gdal-dev] HDF4 trouble files

Joaquim Luis jluis at ualg.pt
Sun Nov 25 14:47:16 EST 2007


Hi

I'm having troubles reading some of files available at
http://oceancolor.gsfc.nasa.gov
In particular the SST files but not the ocean color files.

What is happening is that on the problematic files

GDALGetRasterCount( hDataset );
 
is returning 0, which is fatal to my gdalread mex file.

Here is an example file
http://oceancolor.gsfc.nasa.gov/cgi/getfile/T20061822006212.L3m_MO_SST_9.bz2
Note that running gdalinfo on it does not print the
Band 1 Block= ...

since that part of the code is inside a loop
for( iBand = 0; iBand < GDALGetRasterCount( hDataset ); iBand++ )

and it's not executed since GDALGetRasterCount( hDataset ) == 0


Joaquim Luis


More information about the gdal-dev mailing list