Identifying row and column location of a raster image using ArcGIS 10.1

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.


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"$$ROWMAP + 1"), "output_raster")

See also this answer and this GeoNet post.

Category: arcgis desktop Time: 2016-07-29 Views: 5

Related post

  • Add row and column name to square grid feature in ArcGIS 2014-03-25

    I have a square grid feature class of 250 x 250 tiles. This will serve as a tile index for a a project. They currently have no identifying attributes other than a unique ID. I need to add a field to rename them by their row and column, e.g. "R001_C00

  • How to get row and column number when parse CSV file using Spark Java 2016-02-13

    i'm new in spark , I have a CSV file to read into an JavaRDD where cell is a class that contains row and column number attributes . I can read JavaRDD for each line or for each cell but i don't know how to get row and column to make a new Cell(row,co

  • Rows and columns too high 2016-06-17

    I currently have a 5m DEM with 6000 rows and columns. I need to keep the spatial resolution but reduce the number of rows and columns to 1000. I have used the basin tool to separate the DEM and extract by mask to split up the DEM into smaller section

  • How to group and label rows and columns in a matrix 2015-10-12

    I am trying to reproduce but I am not sure where to start. The basic matrix with the extra spaces between columns is \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \setcounter{MaxMatrixCols}{20} \begin{document

  • Reading Synthetic Aperture Radar raster images using python 2015-07-11

    Is it possible to read and modify Synthetic Aperture Radar raster images using python? gdal is not able to understand their Type which is Binary (application/octet-stream). One can find sample radar images here. --------------Solutions------------- R

  • Extra row and column in a raster after GDAL grid import 2014-02-24

    I'm exporting an ESRI grid to TIFF format and after that I'm reading this exported raster file into SAGA GIS. However when Saga reads this file in there appears to be an additional row and column in the same file and thus changed raster extent. Also

  • How to process raster maps to get the same number of rows and columns? 2015-10-15

    For modeling purposes, I need to use two raster maps that contain exactly the same number of rows and columns. How should I process my maps to obtain this result? For now, my maps don't have the same number of rows and columns... --------------Soluti

  • Displaying row and column indexes for image in ArcGIS DEsktop? 2012-10-04

    I have been struggling with how to find the row number and column number for particular points in any raster map. My raster details: columns and rows: 720 360 cell size (0.5, 0.5) How can I know the row number and column number by pointing the cursor

  • Numbers: Can I highlight the row and column of the selected cell? 2013-01-07

    When reading larger spreadsheets, it would be helpful to highlight the row and column that the currently selected cell is in. I'm not talking about conditional formatting or anything in the spreadsheet itself, I'm just talking about a viewing option.

  • No space between rows and columns of subfigures 2015-07-28

    I have created a 3x3 matrix of figures as follow: \begin{figure} \begin{tabular}{ccc} \includegraphics[scale=0.2]{my_figure} & \includegraphics[scale=0.2]{my_figure} & \includegraphics[scale=0.2]{my_figure} \\ \includegraphics[scale=0.2]{my_figure

  • DRAM timing with row and column decoders 2015-11-29

    Consider a 64Kx1 DRAM memory which means the number of rows is 256 and the number of columns is 256. In other words, two 8x256 decoders are needed for selecting the right row and column. Since, each memory location is 1-bit wide and we usually read 8

  • How merge 100 csv files in 1 dataset in R? Rows and column number are different 2016-01-21

    How merge 100 csv files in 1 data set? Rows and column number are different. I have many csv files. Each file have different columns and rows. I tried many ways to merge but I fail as below. Could you give me any advice? 1St TRY. files=list.files(pat

  • Discarding first row and column in 2D matrix - Repeat same for flattened 1D vector 2016-01-22

    for a 2D matrxi 3x5 or 5x3 I need to perform mapping of 2D matrix to 1D vector. Mapping is ok but skipping the first row and column is where I am lost. I have a 2D matrix that i am accessing using the following code for (uint i=0;i < 3; i++) for (uin

  • Freeze row and columns in Excel (at the same time) 2010-01-06

    How can I lock both column and rows at the same time using the 'freeze panes' in Excel? I can manage to freeze either columns or rows, but not both. I can do a similar thing with "split panes", but this isn't quite what I want. --------------Sol

  • how to arrange photoshop layers as rows and columns like a grid? 2010-01-19

    I have a bunch of images, all the same dimensions loaded onto different layers(1 image per layer) inside a psd. I was wondering if there is any fast way to do this or any utility/script already written: - take a number of rows/columns - make the canv

  • Freeze both row and column in openoffice calc 2010-06-07

    how can i use freeze in openoffice calc for both row and column so that 1st row and 1st column will always be visible? :O --------------Solutions------------- 1) Select cell B2 2) Window -> Split 3) Window -> Freeze

  • MOSS 2007 Excel Services - Show all Rows and Columns? 2011-01-15

    We're running SharePoint 2007. Is there a way to disable the arrow navigation buttons in Excel Services and instead display all rows and columns in the worksheet so the user can use the browser scrollbars instead? Right now it only shows 75 rows at a

  • How can I set the background color of the rows and columns of a matrix node in Tikz? 2011-03-22

    I have a matrix where some cells have nodes while others don't, with rows and columns of varying size depending on the biggest nodes in them. In this matrix, I would like to have the background of rows and columns in the matrix with alternate colors.

  • Program that runs when rows and columns are transposed 2011-03-25

    I posted this to The Daily WTF coder challenge forum a few years ago but only got one response. I figure CodeGolf stack exchange might generate more interest! Description Write a program that runs when the rows and columns of the source code are tran

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 2.639 (s). 13 q(s)