<?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 saving point values in a raster as a result of a CON statement in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/saving-point-values-in-a-raster-as-a-result-of-a/m-p/240136#M18701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to figure out how to do this programmatically:&amp;nbsp; I have a Python script in which I'd like to, essentially, keep track of values in a raster that correspond to points in a feature class.&amp;nbsp; I perform a Con conditional where in which I change the values of a raster based on their correspondence to a point feature class that's been converted to a raster, ie: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;outCon = Con(IsNull(PointFeaturesRaster), Raster(OriginalRaster), 1.0) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I need to change the values of the point locations in the raster to 1.0, but I want to also preserve what the OriginalRaster values are in those locations.&amp;nbsp; Am I making this clear enough?&amp;nbsp;&amp;nbsp; What is the most elegant way to go about this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 17:08:07 GMT</pubDate>
    <dc:creator>CyndyBresloff</dc:creator>
    <dc:date>2013-06-13T17:08:07Z</dc:date>
    <item>
      <title>saving point values in a raster as a result of a CON statement</title>
      <link>https://community.esri.com/t5/python-questions/saving-point-values-in-a-raster-as-a-result-of-a/m-p/240136#M18701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to figure out how to do this programmatically:&amp;nbsp; I have a Python script in which I'd like to, essentially, keep track of values in a raster that correspond to points in a feature class.&amp;nbsp; I perform a Con conditional where in which I change the values of a raster based on their correspondence to a point feature class that's been converted to a raster, ie: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;outCon = Con(IsNull(PointFeaturesRaster), Raster(OriginalRaster), 1.0) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I need to change the values of the point locations in the raster to 1.0, but I want to also preserve what the OriginalRaster values are in those locations.&amp;nbsp; Am I making this clear enough?&amp;nbsp;&amp;nbsp; What is the most elegant way to go about this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 17:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/saving-point-values-in-a-raster-as-a-result-of-a/m-p/240136#M18701</guid>
      <dc:creator>CyndyBresloff</dc:creator>
      <dc:date>2013-06-13T17:08:07Z</dc:date>
    </item>
  </channel>
</rss>

