<?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 simple raster processing, fill with integer [python] in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527846#M17587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, how do I just fill an extent with an integer value, like 1? I have defined cellsize and extent in the environment, but then I would like create a grid with all cells set to e.g. 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcInfo Grid I would do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;newGrid = 1&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 08:58:17 GMT</pubDate>
    <dc:creator>HugoAhlenius</dc:creator>
    <dc:date>2010-11-16T08:58:17Z</dc:date>
    <item>
      <title>simple raster processing, fill with integer [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527846#M17587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, how do I just fill an extent with an integer value, like 1? I have defined cellsize and extent in the environment, but then I would like create a grid with all cells set to e.g. 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcInfo Grid I would do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;newGrid = 1&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 08:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527846#M17587</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2010-11-16T08:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: simple raster processing, fill with integer [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527847#M17588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In v9.3:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.extent = "0 0 1000 5000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#or gp.extent = r"C:\temp\test.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#optional gp.mask = r"C:\temp\test.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.cellsize = "100"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# optional gp.snapraster = someOtherGrid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;somaExp = "1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outputGrd= r"C:\temp\test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.SingleOutputMapAlgebra_sa (somaExp, outputGrd, "")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 16:22:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527847#M17588</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-11-16T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: simple raster processing, fill with integer [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527848#M17589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what version of ArcMap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have you ruled out the raster calculator? (placed in different locations depending upon versions)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have you ruled out the Constant Raster Tool in ArcToolbox, which can also be implemented via Python.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 22:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527848#M17589</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-11-16T22:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: simple raster processing, fill with integer [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527849#M17590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is ArcGIS 10 - and I didn't know about the Constant Raster tool - thanks for the pointer, although it seems like a convoluted way to do that!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 07:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527849#M17590</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2010-11-17T07:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: simple raster processing, fill with integer [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527850#M17591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;there are some examples in the online help&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000s4000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000s4000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 11:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-fill-with-integer-python/m-p/527850#M17591</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-11-17T11:17:20Z</dc:date>
    </item>
  </channel>
</rss>

