<?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 Change &amp;gt;1 values to 1 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128320#M49282</link>
    <description>&lt;P&gt;I'm using ArcGIS Pro 2.9.0. I'm calculating EVI, which has a range of -1 to 1, and my raster has a few outliers that fall outside of that range. I want to deal with these outliers by changing any value greater than 1 to be 1, and any value less than -1 to -1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that there is the function Greater Than, but this changes the values to either 1 or 0. I need to retain the non-outlier values, so this doesn't work for me.&lt;/P&gt;&lt;P&gt;The code in Raster Calculator that I have currently is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Con("multvpm0000",1, "multvpm0000", "multvpm0000 &amp;gt;1")&lt;/LI-CODE&gt;&lt;P&gt;where&amp;nbsp;multvpm0000 is the name of the raster I'm trying to reassign the values on. Running this code&amp;nbsp;gets me the error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ERROR 000539: Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 5, in rcexec_DC684390_0C54_4F14_9EBF_B34DF3F2E1B1&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 1688, in Con&lt;BR /&gt;where_clause)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 55, in swapper&lt;BR /&gt;result = wrapper(*args, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 1682, in Wrapper&lt;BR /&gt;where_clause)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 010416: Error in setting raster table filter for C:\Users\orang\Documents\ArcGIS\Projects\sentinel3\sentinel3.gdb\multvpm0000.&lt;BR /&gt;Failed to execute (Con).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How do I successfully reassign my values?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 15:33:51 GMT</pubDate>
    <dc:creator>BeckB</dc:creator>
    <dc:date>2021-12-22T15:33:51Z</dc:date>
    <item>
      <title>Change &gt;1 values to 1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128320#M49282</link>
      <description>&lt;P&gt;I'm using ArcGIS Pro 2.9.0. I'm calculating EVI, which has a range of -1 to 1, and my raster has a few outliers that fall outside of that range. I want to deal with these outliers by changing any value greater than 1 to be 1, and any value less than -1 to -1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that there is the function Greater Than, but this changes the values to either 1 or 0. I need to retain the non-outlier values, so this doesn't work for me.&lt;/P&gt;&lt;P&gt;The code in Raster Calculator that I have currently is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Con("multvpm0000",1, "multvpm0000", "multvpm0000 &amp;gt;1")&lt;/LI-CODE&gt;&lt;P&gt;where&amp;nbsp;multvpm0000 is the name of the raster I'm trying to reassign the values on. Running this code&amp;nbsp;gets me the error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ERROR 000539: Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 5, in rcexec_DC684390_0C54_4F14_9EBF_B34DF3F2E1B1&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 1688, in Con&lt;BR /&gt;where_clause)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 55, in swapper&lt;BR /&gt;result = wrapper(*args, **kwargs)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 1682, in Wrapper&lt;BR /&gt;where_clause)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 010416: Error in setting raster table filter for C:\Users\orang\Documents\ArcGIS\Projects\sentinel3\sentinel3.gdb\multvpm0000.&lt;BR /&gt;Failed to execute (Con).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How do I successfully reassign my values?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128320#M49282</guid>
      <dc:creator>BeckB</dc:creator>
      <dc:date>2021-12-22T15:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change &gt;1 values to 1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128322#M49283</link>
      <description>&lt;P&gt;Try the following expression in Raster Calculator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;Con("multvpm0000"&amp;gt;1,1, Con("multvpm0000"&amp;lt;(-1),-1,"multvpm0000"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128322#M49283</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-12-22T15:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change &gt;1 values to 1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128324#M49284</link>
      <description>&lt;P&gt;That worked! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/change-gt-1-values-to-1/m-p/1128324#M49284</guid>
      <dc:creator>BeckB</dc:creator>
      <dc:date>2021-12-22T15:43:32Z</dc:date>
    </item>
  </channel>
</rss>

