I have a crop data raster layer in QGIS with one band with values from 10 to 230.
I have written an expression in the Raster Calculator to keep only a number of values (e.g. when = 145 OR when = to 146, etc..
This works but the resulting layer has 0 values for areas that did not satisfy the expression and 1's for areas that did. As a result, I appear to have lost the original raster values which indicate crop types.
Am I doing this wrong or maybe there's another way to filter that will keep my original values?