Even:<div><br></div><div>Thanks: how would I "wildcard" this into a <span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; ">gdalbuildvrt</span>? The files all follow the pattern <span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; ">MCD15A2.A2002185.h14v10.005*</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; ">--j</span></div>
<meta charset="utf-8"><div><br><div class="gmail_quote">On Sat, Apr 30, 2011 at 11:26 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le samedi 30 avril 2011 17:34:28, Jonathan Greenberg a écrit :<br>
<div class="im">> GDALers:<br>
><br>
> I have recently come across the mosaicking magic that is 1) build a vrt<br>
> usin gdalbuildvrt and then 2) gdal_translate the vrt to whatever format I<br>
> want -- I'm noticing this is a crazy-fast way to do mosaicking compared to<br>
> some other techniques. My current issue is that I have a set of MODIS<br>
> HDF4 files, and I'd like (if possible) to repeat this process, using a<br>
> specific layer in the HDF to be mosaicked. What is the trick to doing<br>
> this? As far as I know, all the tiles have the same subdataset name. I<br>
> suppose I can gdal_translate each tile first, then build the vrt, then<br>
> re-export the vrt, but I wanted to know if there was a faster way to do<br>
> this (e.g. skipping the initial gdal_translate)?<br>
><br>
> Here's the gdalinfo dump of one of the tiles. I'm interested in mosaicking<br>
> the<br>
> HDF4_EOS:EOS_GRID:"MCD15A2.A2002185.h14v10.005.2007172042412.hdf":MOD_Grid<br>
> _MOD15A2:Lai_1km subdataset layer:<br>
<br>
</div>You should be able to use directly the subdataset name as an input dataset<br>
name for gdalbuildvrt. No need for it to be a "real" filename.<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jonathan A. Greenberg, PhD<br>Assistant Project Scientist<br>Center for Spatial Technologies and Remote Sensing (CSTARS)<br>Department of Land, Air and Water Resources<br>
University of California, Davis<br>One Shields Avenue<br>Davis, CA 95616<br>Phone: 415-763-5476<br>AIM: jgrn307, MSN: <a href="mailto:jgrn307@hotmail.com" target="_blank">jgrn307@hotmail.com</a>, Gchat: jgrn307<br><br>
</div>