I am trying to run this code:
# create virtual multi-band raster
gdalbuildvrt -separate rgb.vrt red.tif green.tif blue.tif
# write multi-band raster into geotiff
gdal_translate -of GTiff -co PHOTOMETRIC=RGB rgb.vrt rgb.tif
I want to know how to be able to do this in a terminal outside of QGIS.
Start > All Programs > QGIS 2.18 > OSGeo4W Shell. If your paths have been configured correctly, you should be able to use your gdal commands directly:gdalbuildvrt -separate path/to/rgb.vrt path/to/red.tif path/to/green.tif path/to/blue.tif– Joseph Jun 12 '17 at 09:21