I would like to delete several values as they are equal to zero. In my example, 0 -5 - 6 - 7 - 8 ...
I couldn't find an answer on the internet.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
If you right-click the layer and press Save As, at the bottom of the Save As dialog you can define custom NoData-ranges. That way you can save a copy of the raster where those numbers are considered as NoData (I think it needs to be a single band raster for this though.)
If you have SAGA GIS installed, you can use Reclassify Grid Values in the Processing Toolbox.
[edit 2] It seems the table method in the SAGA module is the simplest one. Just select Simple table as method, and click the button shown in the image below. There you can map up what ranges you want to change into what in one go:
Be sure to uncheck the box "Replace other values" as well if you want to keep the values that you are not reclassing. I'll keep my original edit showing the range method below for completeness.
Here is an image showing the SAGA reclass tool where I'm using the Range method to reclass all cell values in the range 0 to 10 to 10. As you can see I've chosen Range as method, and but min value as 0 and max value as 10 to be reclassified, and the output value as 10.
You would have to chain these if you want to reclass several values. For example, say you would want to reclass 1-3 to 1, 4-6 to 2, and 7-9 to 3. You could first reclassify your raster with the range 1 to 3 to 2, and then take that output and reclassify the range 4-6 to 2 in that, and so on.
The method Table might be a more effective way of doing this, but I've never used it myself.