<?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: Odd behavior using Reclassify in arcpy in ArcGIS Analyse Questions</title>
    <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780096#M52</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did indeed end up "floating" it as a workaround.&amp;nbsp; By using it incrementally, do you man by imbedding it in a loop or a function?&amp;nbsp; And you are right about it not being limited to an integer, I was thinking of the Reclass tool, which does seem to be limited.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2018 17:50:38 GMT</pubDate>
    <dc:creator>RobertTrotter</dc:creator>
    <dc:date>2018-11-23T17:50:38Z</dc:date>
    <item>
      <title>Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780092#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Reclassify in arcpy to reclassify a raster, and am running into an issue.&amp;nbsp; I'll briefly explain what I am trying to do, then explain the issue I am running into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a point shapefile, and I am converting this to a raster, what I want is a raster in with two values, a 1 for pixels which did not include a point (does not matter how many points for now), and 0.3 for pixels that do include points.&amp;nbsp; To get there, I am using arcpy.PointToRaster_conversion as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pointfile = shapefile with point features&lt;/P&gt;&lt;P&gt;outraster = output raster&lt;/P&gt;&lt;P&gt;cellsize = size of raster cells&lt;/P&gt;&lt;P&gt;field&amp;nbsp;= the field used to assign the value to the raster (the field is the same constant for all points) 0.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.PointToRaster(pointfile,field,outraster,"","",cellsize)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces a raster in which the cells that include points have the field value, and the rest of the cells have "NoData"&lt;/P&gt;&lt;P&gt;Map Calculator does not work in arcpy, so I am using Reclassify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value = value field in raster&lt;/P&gt;&lt;P&gt;temporaryraster = Reclassify(outraster,value,RemapValue([["NoData",100],[0.3,30]),"DATA")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output raster should have the value 30, where there were previously values of 0.3, and 100s where previously there was "NoData",&amp;nbsp; the output is correct, except there are values of 29 where there should be values of 100.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780092#M48</guid>
      <dc:creator>RobertTrotter</dc:creator>
      <dc:date>2018-11-21T20:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780093#M49</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Con(&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;IsNull(inRaster), 1.0, 0.3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;IsNull returns 1 for locations that are nodata and 0, otherwise, but you can use Con to do the final reclass of you cells that have points to 0,3&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 22:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780093#M49</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-21T22:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780094#M50</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, my apologies if I am missing something obvious (I am new to Python), but I had tried this approach earlier, and it seems that the function is part of the Raster Calculator, which works, but only produces INTEGER output.&amp;nbsp; Is there another way, or perhaps am I doing it wrong?&amp;nbsp; (I used the same script you have shown).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, I found a workaround (I did the reclass, allowed it to go to integers, and then used the Plus and Times functions to modify the output).&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fixed the "converting 100 to 29" issue, but any ideas what caused it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780094#M50</guid>
      <dc:creator>RobertTrotter</dc:creator>
      <dc:date>2018-11-23T17:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780095#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Con and IsNull tools in arctoolbox can be used, incrementally.&amp;nbsp; There is no reason that either tool is limited to an integer.&amp;nbsp; If it were, you can always 'times' by 1.0 or 'float' it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780095#M51</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-23T17:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780096#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did indeed end up "floating" it as a workaround.&amp;nbsp; By using it incrementally, do you man by imbedding it in a loop or a function?&amp;nbsp; And you are right about it not being limited to an integer, I was thinking of the Reclass tool, which does seem to be limited.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780096#M52</guid>
      <dc:creator>RobertTrotter</dc:creator>
      <dc:date>2018-11-23T17:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780097#M53</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forgot to mention, I have not been successful in getting functions to run in arcpy (using the def approach).&amp;nbsp; I get a syntax error using a simple "def functionname(var)" command, but that is probably a problem for another thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780097#M53</guid>
      <dc:creator>RobertTrotter</dc:creator>
      <dc:date>2018-11-23T17:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Odd behavior using Reclassify in arcpy</title>
      <link>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780098#M54</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I meant, doing the IsNull part first and assigning it to a variable and then using that in the con&lt;/P&gt;&lt;P&gt;isnull_result = IsNull(…..&lt;/P&gt;&lt;P&gt;con_result = Con(isnull_result, …..&lt;/P&gt;&lt;P&gt;step-wise may have been a better tern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-analyse-questions/odd-behavior-using-reclassify-in-arcpy/m-p/780098#M54</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-23T17:56:38Z</dc:date>
    </item>
  </channel>
</rss>

