[gdal-dev] Band names when raster stacking
Even Rouault
even.rouault at spatialys.com
Mon Mar 28 07:11:57 PDT 2022
Known issue: https://github.com/OSGeo/gdal/issues/3627
Le 28/03/2022 à 16:08, volkan yazici a écrit :
> Hi,
>
> I use this code for raster stacking:
>
> outvrt = ('result/raster_stack_vrt.tif')
> outtif = ('result/raster_stack.tif')
> tifs = glob.glob('data/*.tif')
> outds = gdal.BuildVRT(outvrt, tifs, separate = True)
> outds = gdal.Translate(outtif, outds)
>
> Band names are automatically generated as band_1, band_2.... I want
> the band names to be the same as the tif names. I found the bandList
> argument in gdal.BuildVRTOptions but that didn't produce the result I
> wanted either. How can I make band names automatically generated from
> the names of tif files?
>
> ----
> Volkan.
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220328/f281afa8/attachment.html>
More information about the gdal-dev
mailing list