<div dir="ltr"><div>During the process georeferencing a Grayscale image, the image must be converted to a RGB image (-expand rgb -ot Byte) before calling gdal_translate setting the GCP's.</div><div><br></div><div>After gdalwarp, the image is of course then RGB (3 Bands)</div><div>- and is rendered looking as a Grayscale image in QGIS</div><div><br></div><div>My question is: how to convert this back to the original Grayscale?</div><div><br></div><div>I assume, during the '-expand', the gray values have been separated into the 3 bands according to some default logic so that it renders as a Grayscale image when viewed.</div><div><br></div><div>I have seen samples of converting a (truly) coloured image to Grayscale:</div><div>gdal_calc.py -A input.tif --A_band=1 -B input.tif --B_band=2 -C input.tif --C_band=3 --outfile=result.tif --calc="A*0.2989+B*0.5870+C*0.1140" </div><div><br></div><div>Would it be something in this form?</div><div><br></div><div>Mark Johnson, Berlin, Germany</div></div>