Is it possible, to correct a raster DEM by changeing the raster-cell-values manually, like by "painting"?

My DEM (ASTER) have one small error where the elevation is about 300m below the actual elevation. It should be a hill, and not a hole...

SRTM 4.1 is good, but has other errors (the hill is very steep and small, so SRTM "ignores" it (<90m).

enter image description here

  • In this question, it looks like you are referring to the fact that there is a steep hill or spire, inside the circle of your 3125 contour, that is not shown on your DEM. If this is the case, I would hesitate to call it an error. If a feature is too small to be captured within the stated resolution of a dataset, it doesn't make the data wrong. The DEM is correct based on the stated parameters of how it was created. Commented May 31, 2012 at 0:47

5 Answers 5


Yes, in GRASS you can edit raster cells graphically with d.rast.edit.

Raster cell editor in GRASS 7


I hesitate to mention this because markusN's answer is so good. But if you don't get on with GRASS and if your DEM is not too large you could try the following.

Firstly, note the coordinates for the pixels that you wish to edit. Then explode the DEM to xyz triplets using gdal2xyz:

gdal2xyz.py input_dem.tif output.csv

'output.csv' will be a space delimited text file containing the xyz triplets.

Next, load 'output.csv' into a plain text editor, search to find the coordinates and change their z-values as required. Save the file, then convert it to a DEM TIF using gdal_translate:

gdal_translate output.csv new_dem.tif



Although this is an old question, I stumbled upon it in search for the same thing. I later found that the Serval QGIS plugin does exactly what you asked.


There is another Qgis plugin designed for that: ThRasE

Disclosure: I developed this plugin, and I don't want to promote it, I just want to share another option


You can also use the Raster calculator to change certain values on the raster. For example, if you want to transform all values between 300 and 310 to 305, raster calculator can do that. The QGIS manual has some examples on this. The last 5 minutes of this YT video also has an example on this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.