get particular band from tiff image and merge them into one gdal code example
Example: gdal merge bands
gdal_merge.py -separate -o new_rgb.tif -co PHOTOMETRIC=MINISBLACK C:\input_r.tif C:\input_g.tif C:\input_b.tif
gdal_merge.py -separate -o new_rgb.tif -co PHOTOMETRIC=MINISBLACK C:\input_r.tif C:\input_g.tif C:\input_b.tif