I have a DEM like below image. The black area shows 0-values.

I want to remove cells of 0-values in the raster.  


In raster calculator, I wrote con("demclip_re@1">0,"demclip_re@1") but it gives "Incorrect expression".

What is wrong with my expression?


Con is an ArcGIS raster tool which is not available in QGIS.

If you want to replace all 0 value cells with nodata, you could use something like:

("demclip_re@1") / ("demclip_re@1">0)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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