[gdal-dev] [gdal_translate] Spatial subset HDF4Image with multiple subdatasets?
dcd
dennis.duro at glel.carleton.ca
Tue Jun 19 14:55:49 PDT 2012
Hi,
Is it possible to spatially subset an HDF4Image that contains multiple
subdatasets using gdal_translate (GDAL 1.9.1)? When using a spatial subset
switch ("-a_ullr"), I get the following response:
"Input file contains subdatasets. Please, select one of them for reading."
This happens regardless of output format specified (HDF4Image, GTiff, ENVI,
etc.), or whether the "-b" switch has been used as per the examples here:
http://www.gdal.org/gdal_translate.html. A workaround is to use the "-sds"
switch allows the process to complete, but (as expected) it processes each
subdataset as a separate file. I suppose I can just merge these subdatasets
together again, but I'd like to avoid the extra step. Is this possible?
I'm working with a MODIS imagery (MOD09GA), but I've had the issues with
other similar HDF4 datasets.
Any help would be appreciated!
Cheers,
Dennis
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-translate-Spatial-subset-HDF4Image-with-multiple-subdatasets-tp4982526.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list