[GIS] Deleting one band from raster file

qgisraster

I was working using drone imagery (regular camera) and there is this alpha band which is preventing me from doing maximum likelihood classification.

I want to remove the alpha band. So far I used raster calculator, separate the image into 3 images for each band (R, G, B) and them using raster merge to join them again, but this is so time-consuming and circuitous.

Is there any simpler way?

Best Answer

If you know how to access gdal from the OSGeo4W command line shell which comes with QGIS, you could try gdal_translate to export the first 3 bands:

gdal_translate -b 1 -b 2 -b 3 input.tif output.tif
Related Question