I am using QGIS 3.8 and I have a raster named "Ri" with one band with values ranging from 0.00299858 to 0.198849 and second raster named "IP_Q" with one band with values ranging from 0.00100708 to 14.5811. I am trying to create one raster out of these two rasters using Raster calculator.
The output should have three cathegories based on this table:
- cathegory 1: Ri < 0.01
- cathegory 2: 0.01 =< Ri < 0.1
- cathegory 3: Ri >= 0.1 or IP_Q >= 2
The raster calculator expression I've used is as follows:
( "Ri" < 0.01 ) * 1 + ( ( 0.01 <= "Ri" ) AND ( "Ri" < 0.1 ) ) * 2 + ( ( "Ri" >= 0.1 ) OR ( "IP_Q" >= 2 ) ) * 3
However, the result is a raster with values ranging from 1 to 7. I am trying to get a raster with values ranging only from 1 to 3 so it corresponds to the table above.
It seems I am missing something.
Any ideas?