I just needed the raster calculator. Here is what I put in the equation:
HWE - "DEM@1"
HWE = value of high water elevation at same vertical datum and units as DEM raster (e.g. 44)
DEM = the file name of the DEM layer which I used
I don't think you can embed a GRASS module into an r.mapcalc expression. The way to accomplish with GRASS what you have shown in the ArcGIS raster calculator would require two steps, using a mask, as follows:
# As always, set the computational region
g.region -ap rast=rater3
# Determine the mask
# Note that the GRASS logical AND operator is &&
I've just managed to get the model working.
The issue is caused by a glitch of some sort, related to the system language. After changing the QGIS language from Spanish to English, the model above works with no issues. Will report this on the QGIS github. (bug report)
It's not the first time I've run across issues during some process due to the language, ...
Use the Reclassify tool to turn your red areas into NoData values and the red area NoData values to zeros. Before you do this ensure use the geoprocessing settings to ensure the output from the Reclassify has the same extent at both data sets. Then add the resulting reclassified surface with your slope using the Plus tool.
float() is a python builtin. You can only pass strings or numbers to it.
What you need is Float() which is from the arcpy.sa package (which is already imported when using the raster calculator, you only need to import it if writing python scripts).
(Float(B6)-B5-0.2) * (Float(B6)-B3) * Float(B6)/B5
Note how I've only put Float around ...
The conditions must be mutually exclusive, if you want all possible cases to fall into one and only one of those categories.
For example, if you want that whenever the IP_Q value is greater than or equal to 2, category 3 corresponds, and otherwise it is defined between categories 1 and 2 depending on the value of the Ri variable, then the categories ...