Skip to content
Prev 2432 / 29559 Next

reading HDF5 files

On Tue, 14 Aug 2007, Paul Hiemstra wrote:

            
Please state the gdalinfo of the input HDF5, and the output gTiff. Your 
use of gdal_translate seems to be mangling the (IIRC) projected 
coordinate reference system of the HDF5 to a geographical coordinate 
reference system, with the result that the coordinate values are "out of 
bounds". I think you need to show the full gdal_translate command, and to 
look at the help page:

http://www.gdal.org/gdal_translate.html

and try out the -a_srs option. Maybe also look at the -sds option if you 
are not sure that the subset is being chosen correctly.

Once gdalinfo on the output gTiff shows a geographical coordinate 
reference system, rgdal will work (unless this is near-polar and you have 
a raster cell boundary > |90|, which does happen sometimes - then you need 
to adjust the input data).

Roger