I try to conver the RGB tiff with weights for the three bands like this:
import gdal import numpy as np rgbimg = gdal.Open(\'Panchro_image/