The solution already available online gives a python syntax error

ERROR 000989

Python syntax error: Parsing error SyntaxError: invalid syntax (line 1)

when I write

$$rowmap + 1

in map algebra expression.

  • 2
    That Support Article wrongly refers to ArcGIS 10. It only applies to ArcGIS <= 9.3x.
    – user2856
    Jul 29, 2016 at 10:00

1 Answer 1


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")  

See also this answer and this GeoNet post.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.