<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: internal grids rowmap/colmap/xmap/ymap in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7762#M167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One has to go the numpy route?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, that seems to be the only solution for now. You might want to add your voice to the ArcGIS "wish list" at ideas.arcgis.com. An arc grid request has already been created. Click &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/ideaView?id=087300000008DT2&amp;amp;returnUrl=/apex/ideaList%3Fc%3D09a300000004xET%26category%3DArcGIS%2BDesktop%26sort%3Dcomments"&gt;here &lt;/A&gt;&lt;SPAN&gt;for a direct link.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2010 19:55:23 GMT</pubDate>
    <dc:creator>MannyGimond</dc:creator>
    <dc:date>2010-12-12T19:55:23Z</dc:date>
    <item>
      <title>internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7761#M166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the latest on internal $$RowMap etc grids in ArcGIS 10? One has to go the numpy route?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 11:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7761#M166</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2010-12-03T11:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7762#M167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One has to go the numpy route?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, that seems to be the only solution for now. You might want to add your voice to the ArcGIS "wish list" at ideas.arcgis.com. An arc grid request has already been created. Click &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/ideaView?id=087300000008DT2&amp;amp;returnUrl=/apex/ideaList%3Fc%3D09a300000004xET%26category%3DArcGIS%2BDesktop%26sort%3Dcomments"&gt;here &lt;/A&gt;&lt;SPAN&gt;for a direct link.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 19:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7762#M167</guid>
      <dc:creator>MannyGimond</dc:creator>
      <dc:date>2010-12-12T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7763#M168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the link - I have voted it up!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7763#M168</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2010-12-13T10:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7764#M169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From this thread, in version 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;try the example&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import numpy as np
import arcpy
#source http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra
#with some fiddling
# Setup some rasters of rows and columns
# (like old $$ROWMAP and $$COLMAP)
arcpy.env.workspace = "c:/temp"
arcpy.env.overwriteOutput = 1

nprows = np.indices((10,10))[0]
npcols = np.indices((10,10))[1]
# Convert the numpy arrays to ESRI rasters (ie Raster objects)
# called 'rows' and 'cols'
row_ras = arcpy.NumPyArrayToRaster(nprows)
row_ras.save("rowraster")
col_ras = arcpy.NumPyArrayToRaster(npcols)
col_ras.save("colraster")
print row_ras
print col_ras
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7764#M169</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T20:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7765#M170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found I can use the built in GRID variables or scalars in ArcGIS 10 with a bit of a hack.&amp;nbsp; It appears that the python arcgisscripting module is still included in Desktop ArcGIS 10, perhaps for backwards compatibility (or perhaps I didn't uninstall 9.3 properly...), so I wrote a little script that uses the SingleOutputMapAlgebra tool, created a script tool and added that to a custom toolbox and then just use that as required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcgisscripting
gp = arcgisscripting.create(9.3) #This works in ArcGIS 10!!!
expr=gp.getparameterastext(0)
output=gp.getparameterastext(1)
result=gp.SingleOutputMapAlgebra(expr,output)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached a screenshot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7765#M170</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-10T20:19:25Z</dc:date>
    </item>
    <item>
      <title>internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7766#M171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;nbsp;&amp;nbsp; The best workaround I found in that environment was to compute flow accumulations for constant direction grids (and unit weights): $$ColMap is the flow accumulation of a grid filled with 1's and $$RowMap is the flow accumulation of a grid filled with 4's.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I did an implementation of this idea in arcpy map algebra here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/message/120929"&gt;arcpy map algebra $$ROWMAP, $$COLMAP&lt;/A&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 00:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7766#M171</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-05-13T00:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: internal grids rowmap/colmap/xmap/ymap</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7767#M172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke --&amp;nbsp; arcgisscripting is still there under arcpy. (You probably know this by know as this post was 2011!)&lt;/P&gt;&lt;P&gt;So this works (for now anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
arcpy.env.scratchWorkspace = r"D:\Users\cprice\work"
arcpy.CheckOutExtension("spatial")
arcpy.env.extent = arcpy.Extent(0, 0, 10, 10)
arcpy.env.cellSize = 1
arcpy.gp.SingleOutputMapAlgebra_sa("$$ROWMAP"), "rowmap")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/internal-grids-rowmap-colmap-xmap-ymap/m-p/7767#M172</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T20:19:27Z</dc:date>
    </item>
  </channel>
</rss>

