<div dir="ltr"><span style="font-size:12.8000001907349px">thank you Even Rouault.</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 2, 2015 at 5:43 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le lundi 02 février 2015 04:29:33, yuta sato a écrit :<br>
<span class="">> Sorry, the outfile name I tried is outfile.vrt, but not outfile.tif.<br>
> However, I used gdaltranslate to convert .vrt into .tif<br>
<br>
</span>currently gdalbuildvrt -separate only operates on the first band of each<br>
inputfile. So you have to preliminary steps before to isolate each band into a<br>
separate file. For example :<br>
<br>
gdal_translate in1.tif in1_1.vrt -of vrt -b 1<br>
gdal_translate in1.tif in1_2.vrt -of vrt -b 2<br>
gdal_translate in1.tif in1_3.vrt -of vrt -b 3<br>
gdal_translate in1.tif in1_4.vrt -of vrt -b 4<br>
gdal_translate in1.tif in1_5.vrt -of vrt -b 5<br>
<br>
gdal_translate in2.tif in2_1.vrt -of vrt -b 1<br>
gdal_translate in2.tif in2_2.vrt -of vrt -b 2<br>
gdal_translate in2.tif in2_3.vrt -of vrt -b 3<br>
gdal_translate in2.tif in2_4.vrt -of vrt -b 4<br>
gdal_translate in2.tif in2_5.vrt -of vrt -b 5<br>
<br>
gdalbuildvrt -separate out.vrt \<br>
in1_1.vrt in1_2.vrt in1_3.vrt in1_4.vrt in1_5.vrt \<br>
in2_1.vrt in2_2.vrt in2_3.vrt in2_4.vrt in2_5.vrt<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Additionally, when I see the .vrt file only two bands are written there.<br>
><br>
> On Mon, Feb 2, 2015 at 12:26 PM, yuta sato <<a href="mailto:yutaxsato@gmail.com">yutaxsato@gmail.com</a>> wrote:<br>
> > Dear all:<br>
> ><br>
> > I have two geotiff files each of 5 bands.<br>
> ><br>
> > I wanted to make one file consisting of 10 bands.<br>
> ><br>
> > I tried as follows, but I got only 2 bands in the outfile.<br>
> ><br>
> > buildvrt -separate -input_file_list infile.txt outfile.tif<br>
> ><br>
> > Please help me.<br>
> ><br>
> > Thanks<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div>