I have two images with 3 and 5 bands respectively. How do I retain each image's individual bands after merging?
from osgeo import gdal
img_list = ['img1.tif', 'img2.tif']
vrt = gdal.BuildVRT("merged.vrt", img_list, separate=True)
gdal.Translate('merge_img.tif', vrt)
The code above will result in merge image with 2 bands. I want it to be 8 bands, that is: image1 (3 bands) + image2 (5 bands) = 8 bands
.