<?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: Con statement in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224647#M3167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan and Jayanta.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was pretty much my Plan B.&amp;nbsp; Looks like I'm headed to the land of Model Builder and Python.&amp;nbsp; Thank you for&amp;nbsp;your time submitting&amp;nbsp;comments and suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Dec 2016 23:05:46 GMT</pubDate>
    <dc:creator>Eric_JS</dc:creator>
    <dc:date>2016-12-11T23:05:46Z</dc:date>
    <item>
      <title>Con statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224642#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to convert all 255 cell values of one raster with the values of a different overlapping second raster.&amp;nbsp;Both input rasters are 4 band, 16&amp;nbsp;bit unsigned integer tiffs.&amp;nbsp; I'm using the following con statement:&amp;nbsp; Con("ras1.tif","ras1.tif","ras2.tif","VALUE&amp;lt;&amp;gt;255").&amp;nbsp; My output raster is 8 bit unsigned integer tiff.&amp;nbsp; How&amp;nbsp;do I&amp;nbsp;maintain a 16&amp;nbsp;bit unsigned integer tif as the output raster and retain the 4 bands?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 04:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224642#M3162</guid>
      <dc:creator>EricSandoval</dc:creator>
      <dc:date>2016-12-11T04:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Con statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224643#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was the result of your syntax? &amp;nbsp;Did it not do anything? &amp;nbsp;Was there an error? Did it not produce what you wanted? Hard to dissect what happened without some further comment. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the python syntax? &amp;nbsp;check &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/con-.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/con-.htm"&gt;Con—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;since &amp;lt;&amp;gt; should probably be !=&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/extensions/spatial-analyst/map-algebra/building-complex-statements.htm" title="http://desktop.arcgis.com/en/arcmap/latest/extensions/spatial-analyst/map-algebra/building-complex-statements.htm"&gt;Building complex statements—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there is no mention of multiband rasters ... just integer and floating point suggesting single band. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 08:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224643#M3163</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-12-11T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Con statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224644#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax was fine.&amp;nbsp; It produced a result, but only as a single band .tif image.&amp;nbsp; No errors.&amp;nbsp; What I would like is a output that is 4 bands, not single band.&amp;nbsp; Also would like 16&amp;nbsp;bit unsigned integer output, not 8 bit unsigned integer. Did not use Python syntax.&amp;nbsp; And yes, the Help does not mention multibands.&amp;nbsp; I thought that&amp;nbsp;a Con statement would be the best way to approach this, but if it's limited I don't want to be barking up the wrong tree.&amp;nbsp; Before I head down the scripting route, I wanted to check to see if anyone else had used the Con statement for something similar, with similar raster data.&amp;nbsp; BTW, this is for hundreds of multiband rasters and was thinking of&amp;nbsp;running a Raster Calculator batch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 18:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224644#M3164</guid>
      <dc:creator>Eric_JS</dc:creator>
      <dc:date>2016-12-11T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Con statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224645#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't suppose 255 occurs at the same pixel locations in all bands either...otherwise it sounds like you want to either mask or clip the image. &amp;nbsp;Mosaic datasets might offer some capability, but I haven't looked in detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 19:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224645#M3165</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-12-11T19:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Con statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224646#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned by &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌, you might need to clip the image.&lt;/P&gt;&lt;P&gt;Lets say&amp;nbsp;you need area of interest of Raster1 and the pixel values of Raster 2.&lt;/P&gt;&lt;P&gt;1) First, reclassify Raster1 with a single (1) class&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/reclassify.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/reclassify.htm"&gt;Reclassify—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/281253_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use the reclassified raster to create a polygon (non-simplified output.&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polygon.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polygon.htm"&gt;Raster to Polygon—Conversion toolbox | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Use the above polygon to clip Raster2&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/clip.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/clip.htm"&gt;Clip—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep "Use Input Features for clipping Geometry" checked.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/281254_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;But don't check "Maintain Clipping Extent" (Else the values might get compromised due to resampling).&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/281261_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should get the clipped Raster with all the available bands of Raster2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 20:41:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224646#M3166</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2016-12-11T20:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Con statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224647#M3167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan and Jayanta.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was pretty much my Plan B.&amp;nbsp; Looks like I'm headed to the land of Model Builder and Python.&amp;nbsp; Thank you for&amp;nbsp;your time submitting&amp;nbsp;comments and suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 23:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/con-statement/m-p/224647#M3167</guid>
      <dc:creator>Eric_JS</dc:creator>
      <dc:date>2016-12-11T23:05:46Z</dc:date>
    </item>
  </channel>
</rss>

