[gdal-dev] How to use gdalinfo for HDF

Anton Korosov anton.korosov at nersc.no
Fri Aug 5 08:38:07 EDT 2011

Looks like a syntax error. There should be a colon after EOS_GRID
gdalinfo HDF4_EOS:EOS_GRID:"C:\filename.hdf":POSTEL:data1

At least that works at my Linux:

On 08/05/2011 12:32 PM, Luisa Peña wrote:
> Greetings
> I have read This webpage: http://www.gdal.org/frmt_hdf4.html
> But I'm having one difficulty
> If I have my HDF in my current folder I'm able to do gdalinfo over my
> file and then over my layer
> gdalinfo HDF4_EOS:EOS_GRID"filename.hdf":POSTEL:data1
> and I get all the information
> But, if I have my data in other folder (like C:\data)
> I do:
> gdalinfo C:\data\filename.hdf
> and I get a list of layers
> and then:
> gdalinfo HDF4_EOS:EOS_GRID"C:\filename.hdf":POSTEL:data1
> I get:
> Open GDAL datasets:
> 1 N DriverIsNull 512x512x0
> How can I apply gdalinfo (or gdalwarp) for cases like this?
> THanks
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

More information about the gdal-dev mailing list