I have a raster dataset with pixel values ranging between 1 and 255. I would like to set 5-255 to 5 and leave pixels with 1,2,3,4 value in QGIS.
I know I can use the raster calculator (raster >=5)* 5
, however, it classifies 5-255 values to 5 but also sets 1,2,3,4 value to 0. What should I do to avoid changing the values between 1 and 4?