Skip to content
Prev 4870 / 29559 Next

readGDAL() and HDF5 files

On Fri, 16 Jan 2009, Sebastian P. Luque wrote:

            
Sorry for the delay. Having now set up a reprodicable route (OSGeo4W GDAL 
and drivers, rgdal built against OSGeo4W as in a posting a couple of days 
ago), I can see the problem, but have no resolution.

Doing gdalinfo on the data itself, I see geographical coordinates, not 
projected. GDAL does not retrieve the grid metadata correctly, and assigns 
default 1x1 grid cells starting at c(0.5, 0.5). Using gdal_translate to 
convert it to a GTiff, I see that I have to set p4s to NA to read at all, 
and the problems remain. I would be interested in knowing who or what 
wrote the HDF5 file, because it doesn't seem to be what it says it is (no 
grid metadata, different CRS from your assumption), and so the data may 
actually be in the wrong order too.

Roger

PS - I can't see that you've asked on the GDAL list, hence the reply here.