On Wed, May 2, 2012 at 9:54 AM, Even Rouault
wrote:
>
>> but there is no way to actually select 1 or more specific subdatasets
>
> It is possible to select one subdataset. You must use the name reported in the
> lines that contain SUBDATASET_XXX_NAME. For example :
>
> gdal_translate HDF4_EOS:EOS_
On Wed, May 2, 2012 at 9:43 AM, Agustin Lobo wrote:
> You are right. I was confusing bands and subdatasets.
> The following does not work:
> $ gdal_translate -b 4 lndsr.L5169054_05420101216.hdf test.tif
> Input file contains subdatasets. Please, select one of them for reading.
>
> The following w
> but there is no way to actually select 1 or more specific subdatasets
It is possible to select one subdataset. You must use the name reported in the
lines that contain SUBDATASET_XXX_NAME. For example :
gdal_translate HDF4_EOS:EOS_GRID:"lndsr.L5169054_05420101216.hdf":Grid:band1
out.tif
>
> T
You are right. I was confusing bands and subdatasets.
The following does not work:
$ gdal_translate -b 4 lndsr.L5169054_05420101216.hdf test.tif
Input file contains subdatasets. Please, select one of them for reading.
The following works:
$ gdal_translate -sds lndsr.L5169054_05420101216.hdf test.
Selon Agustin Lobo :
> Hi!
>
> The gdal info of a multiband satellite image in hdf is reported by
> gdal as "Size is 512, 512"
> in contradiction with the size of the subdatasets. QGIS and R
> (raster+rgdal) report an error at opening the file,
> while envi and HDFLook can open it with no problem.
Hi!
The gdal info of a multiband satellite image in hdf is reported by
gdal as "Size is 512, 512"
in contradiction with the size of the subdatasets. QGIS and R
(raster+rgdal) report an error at opening the file,
while envi and HDFLook can open it with no problem. I include the
gdalinfo output and