<div dir="ltr"><div>Hi there.</div><div><br></div><div>Given 3 input geotiffs (each with 2 bands), I want to create 1 geotiff with 3 bands (the 2nd band from each aforementioned geotiff). This should be quite simple using gdal.BuildVRT and gdal.translate. But, gdal.BuildVRT will not allow me to select the 2nd band from each input image. The following code produces the following warning:</div><div><br></div><div><b>Code:</b><br>gdal.BuildVRT(output_vrt_fname, lst_of_input_geotiff_files, separate=True, bandList=[2])</div><div><br></div><div><b>Warning:</b></div><div> "fname.tif has 2 bands. Only the first one will be taken into account for the -separate case"</div><div><br></div><div>Of course, I do not want to only use the first band, I want to use the 2nd band to create the VRT. Please let me know what I'm doing wrong and how I can fix it.</div><div><br></div><div>Best,</div><div>Billy B</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Billy Babis</div><div>PhD Candidate: Environmental Economics & Policy (ABD)</div><div>Computer Science B.S.</div><div>1-(908)-403-2006</div><div><br></div></div></div></div></div></div></div></div>