I've been making in Raster Calculator, one by one, for every Return Period (2, 5, 10, 50, etc.) different sub-rasters of 4 sections of water depth, it's very tedious and I know there is a faster way to do this in Python. Let's say those intervals are:
depth <0.2 m
0.2 m <= depth <0.3 m
0.3 m <= depth <0.5 m
0.5 m => depth
For every RP.
I would like a script that gives me those four intervals as raster outputs in one particular PR, but so far, I can't get QgsRasterCalculator to work with those inequations. Any direction and/or guidance into this? im very new to python in Qgis and all the information available seems outdated or very cryptic.
Cheers.