Make an RGB virtual mosaic from 3 single-band input files

gdalbuildvrt

  • Build Virtual Datasets from a list of existing datasets.
    More information: <https://gdal.org/programs/gdalbuildvrt.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gdalbuildvrt -separate {{path/to/rgb.vrt}} {{path/to/red.tif}} {{path/to/green.tif}} {{path/to/blue.tif}}

click the source code to copy install gdalbuildvrt on any operating system with command-not-found.com