Quantcast
Channel: ArcMap Raster Calculator with Python code - Geographic Information Systems Stack Exchange
Browsing index pages (2 articles)

ArcMap Raster Calculator with Python code

I'm trying use raster calculator that can export a raster to do different average values for for multiple layers. For example, I want to do averages for only the values and layers that are greater than...

View Article


Answer by user2856 for ArcMap Raster Calculator with Python code

The error tells you exactly what is wrong and where IndentationError: expected an indented block (line 7). You need to indent lines in your if clause:if value > 1: outraster = (f1 + f2 + f3)/3else:...

View Article

Browsing index pages (2 articles)


Latest Images