[gdal-dev] [gdal_translate] Spatial subset HDF4Image with multiple subdatasets?
Jose Gomez-Dans
jgomezdans at gmail.com
Wed Jun 20 06:26:21 PDT 2012
Hi,
On 20 June 2012 14:13, Vincent Schut <schut at sarvision.nl> wrote:
> 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
Another interesting option is to use virtual datasets. You create an
XML file that points to the individual HDF datasets, do the subsetting
(maybe reprojection) etc. This file is read transparently by GDAL
(referring to the original HDF files. Mind you, there's a penalty in
accessing the compressed datasets), or can be converted to another
format if you wish. Different resolutions (ie 0.5/1km data) are
readily treated by the VRT format specification.
J
More information about the gdal-dev
mailing list