I'm wondering if there is a method to perform a function similar to ArcGIS's
Con tool, using open source options in Python.
I have two rasters, one that shows veloticty and one that shows detph. With ArcPy it is easy to get a new raster:
Con(((detph >= 1) | (veloticty >= 1)|(detph*veloticty>=0.5)), 3,(Con(((detph >= 0.4) | (veloticty >= 0.4)|(detph*veloticty>=0.08)), 2,1)))
I would like to do with open source options in Python.