I have a model that does a really simple Raster Calculator operation:
"%Output accumulation raster%" >= 150
That's it. I have been racking my brain trying to figure out how do I get this into a python script? I have been looking at A Quick Tour of Using Map Algebra and frankly I'm overwhelmed because I don't have bundles of time on my hands, and I'm just trying to do something very straightforward somewhat quickly. I feel like I need to see a very specific, hand-holding, with reasons, example of taking this Raster Calculator expression and putting it into Python (3.6, ArcGIS Pro 2.2).
Part of the code in question looks like this (yes, I'm using Spatial Analyst hydrology tools here):
outfill = Fill(raster)
outFlowDirection = FlowDirection(outfill, "NORMAL")
outFlowAccum = FlowAccumulation(outFlowDirection)
stream_raster = Raster(outFlowAccum >= 150) #this is the part that fails
I'm sure this is really 101 but nevertheless, I'd appreciate any guidance.