[gdal-dev] gdalbuildvrt, gdal_translate, and MODIS HDF files

Jonathan Greenberg greenberg at ucdavis.edu
Sat Apr 30 17:01:18 EDT 2011


Even:

Thanks: how would I "wildcard" this into a gdalbuildvrt?  The files all
follow the pattern MCD15A2.A2002185.h14v10.005*

--j

On Sat, Apr 30, 2011 at 11:26 AM, Even Rouault <even.rouault at mines-paris.org
> wrote:

> Le samedi 30 avril 2011 17:34:28, Jonathan Greenberg a écrit :
> > GDALers:
> >
> > I have recently come across the mosaicking magic that is 1) build a vrt
> > usin gdalbuildvrt and then 2) gdal_translate the vrt to whatever format I
> > want -- I'm noticing this is a crazy-fast way to do mosaicking compared
> to
> > some other techniques.  My current issue is that I have a set of MODIS
> > HDF4 files, and I'd like (if possible) to repeat this process, using a
> > specific layer in the HDF to be mosaicked.  What is the trick to doing
> > this?  As far as I know, all the tiles have the same subdataset name.  I
> > suppose I can gdal_translate each tile first, then build the vrt, then
> > re-export the vrt, but I wanted to know if there was a faster way to do
> > this (e.g. skipping the initial gdal_translate)?
> >
> > Here's the gdalinfo dump of one of the tiles.  I'm interested in
> mosaicking
> > the
> >
> HDF4_EOS:EOS_GRID:"MCD15A2.A2002185.h14v10.005.2007172042412.hdf":MOD_Grid
> > _MOD15A2:Lai_1km subdataset layer:
>
> You should be able to use directly the subdataset name as an input dataset
> name for gdalbuildvrt. No need for it to be a "real" filename.
>



-- 
Jonathan A. Greenberg, PhD
Assistant Project Scientist
Center for Spatial Technologies and Remote Sensing (CSTARS)
Department of Land, Air and Water Resources
University of California, Davis
One Shields Avenue
Davis, CA 95616
Phone: 415-763-5476
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110430/dc5b9404/attachment.html


More information about the gdal-dev mailing list