I have a model that does a really simple Raster Calculator operation:
<SPAN class="string token">"%Output accumulation raster%"</SPAN> <SPAN class="operator token">>=</SPAN> <SPAN class="number token">150</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
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 <SPAN class="operator token">=</SPAN> Fill<SPAN class="punctuation token">(</SPAN>raster<SPAN class="punctuation token">)</SPAN>
outFlowDirection <SPAN class="operator token">=</SPAN> FlowDirection<SPAN class="punctuation token">(</SPAN>outfill<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NORMAL"</SPAN><SPAN class="punctuation token">)</SPAN>
outFlowAccum <SPAN class="operator token">=</SPAN> FlowAccumulation<SPAN class="punctuation token">(</SPAN>outFlowDirection<SPAN class="punctuation token">)</SPAN>
stream_raster <SPAN class="operator token">=</SPAN> Raster<SPAN class="punctuation token">(</SPAN>outFlowAccum <SPAN class="operator token">>=</SPAN> <SPAN class="number token">150</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="comment token">#this is the part that fails</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I'm sure this is really 101 but nevertheless, I'd appreciate any guidance.