The solution already available online gives a python syntax error
Python syntax error: Parsing error SyntaxError: invalid syntax (line 1)
when I write
$$rowmap + 1
in map algebra expression.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
The $$RowMap, $$ColMap, $$XMap and $$YMap variables (and some others) are no longer (directly) supported as of ArcGIS 10.0.
You can use it via python:
arcpy.env.extent = arcpy.Extent(0, 0, 10, 10) #Change to suit # Or arcpy.env.extent = "path to raster" arcpy.env.cellSize = 1 #Change to suit arcpy.gp.SingleOutputMapAlgebra_sa("$$ROWMAP + 1"), "output_raster")