<?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: simple raster processing [python] in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148877#M5028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, of course, my bad - I actually omitted one thing, the "strange" case is when I do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;newDataset = Raster("oldDataset")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That just assigns the dataset to that variable, when I expect a recalculation (according to the env settings)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Nov 2010 08:07:29 GMT</pubDate>
    <dc:creator>HugoAhlenius</dc:creator>
    <dc:date>2010-11-09T08:07:29Z</dc:date>
    <item>
      <title>simple raster processing [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148875#M5026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[python]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After importing arcpy.sa, I was a bit surprised at the behaviour with some simple processing...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set the cellSize and extent to be different from the original dataset, and if I then do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;newDataset = oldDataset&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- then neither of these two properties change - it is just a copy of the original dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;newDataset = oldDataset+0&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- then the new extent and cellsize are reflected&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this expected behaviour? Coming from ArcInfo workstation/Grid I was expecting the first to work...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 11:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148875#M5026</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2010-11-08T11:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: simple raster processing [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148876#M5027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your first example is pure python, and is just creating a new name for the the object oldDataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The second example is performing a spatial analyst function and binding the result of that function to newDataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So yes, the behavior is expected. This is how python works, and has nothing to do with arcpy, or sa. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are no variables in the python language, just names and objects. The assignment syntax binds an object to a name, it doesn't copy the underlying object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 12:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148876#M5027</guid>
      <dc:creator>NiklasNorrthon</dc:creator>
      <dc:date>2010-11-08T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: simple raster processing [python]</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148877#M5028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, of course, my bad - I actually omitted one thing, the "strange" case is when I do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;newDataset = Raster("oldDataset")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That just assigns the dataset to that variable, when I expect a recalculation (according to the env settings)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 08:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/simple-raster-processing-python/m-p/148877#M5028</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2010-11-09T08:07:29Z</dc:date>
    </item>
  </channel>
</rss>

