I have a list with lots of VRTs. Each VRT is the mosaic for a single band for a single band. What I want to do is to make a final TIFF with as many layers as bands. I'm trying to first make one VRT and then convert it to a TIFF in Python. But what I get is a TIFF with a single layer...
My list of VRTs (vrts_per_date
) kind of looks like this:
[296B02.vrt', 296B10.vrt', 296B08.vrt', 296B12.vrt', 296B07.vrt', 296B03.vrt', 296B11.vrt'...]
And then I use:
single_vrt = gdal.BuildVRT("my.vrt" vrts_per_date)
And finally I want to make a TIFF with all bands, so I use:
final_tif = gdal.Translate("my.tiff", single_vrt)
But when I open it in QGIS it's a mosaic, but with just one band...
How can I get a TIFF as output with as many bands as VRTs in vrts_per_date
?