[gdal-dev] [gdal_translate] Spatial subset HDF4Image with multiple subdatasets?

dcd dennis.duro at glel.carleton.ca
Wed Jun 20 06:25:11 PDT 2012


On 06/20/2012 02:55 PM, Etienne Tourigny wrote:
> You could combine them as a multi-band gtiff file for example
No, in this case (MOD09GA data) you cannot, because the subdatasets have 
different resolutions / raster sizes, and datatypes. Imho there is no 
other way than to subset each subdataset separately. Things might seem a 
bit more logical when you consider the main hdf file as a container, 
like a directory or an archive. You also cannot subset a directory, but 
you'll need to subset each raster file in it by itself.

Best,
Vincent.

Just FYI, I've had the same issue with HDF4 files that contain subdatasets
that are all the same spatial resolution, extent, and data type (multi-band
Landsat).



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-translate-Spatial-subset-HDF4Image-with-multiple-subdatasets-tp4982526p4982681.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list