Thanks for this! I'm new to both rasters and Python so code like this is a HUGE help. However, I think there's a small bug. Shouldn't the xmap setting be adding XMin instead of YMin at the end? I.e., xmap = (FlowAccumulation(tmpg) + 0.5) * cellSize + E.extent.XMin Thanks again for the code, very useful.
... View more