<?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: Help with Con Statement in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-con-statement/m-p/86948#M1195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In 9.x, you need to surround most operators (including "/") with white space, Lynn.&amp;nbsp; A good approach is to first carry out a complex series of calculations one at a time in the Raster Calculator so you can catch such problems right where they happen.&amp;nbsp; Later you can combine them into a monolithic expression for SOMA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, it's simpler (and more accurate) to square the sine rather than subtract the square of the cosine from 1: remember, 1 - cos^2(x) = sin^2(x).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 17:10:45 GMT</pubDate>
    <dc:creator>WilliamHuber</dc:creator>
    <dc:date>2010-12-03T17:10:45Z</dc:date>
    <item>
      <title>Help with Con Statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-con-statement/m-p/86947#M1194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Lynn_Carlson&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to assign values greater than 350 with the values of 1 and the values less than 350&amp;nbsp; from the equation below where x= original values and y=the output value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;y=1-cos^2(x/350*pi/2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus, using Single Output Map Algebra the equation I am trying to write is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;con(x&amp;lt;350, 1-cos(x/350*RAD(90))*cos(x/350*RAD(90)),1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where x is the original raster layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However this produces an error message. After playing around with it, I found that once I add the "divided by 350" the function no longer works. How do I solve this problem? What is the correct syntax?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 9.3.1 with Spatial Analyst&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 15:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-con-statement/m-p/86947#M1194</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-12-02T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Con Statement</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-con-statement/m-p/86948#M1195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In 9.x, you need to surround most operators (including "/") with white space, Lynn.&amp;nbsp; A good approach is to first carry out a complex series of calculations one at a time in the Raster Calculator so you can catch such problems right where they happen.&amp;nbsp; Later you can combine them into a monolithic expression for SOMA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, it's simpler (and more accurate) to square the sine rather than subtract the square of the cosine from 1: remember, 1 - cos^2(x) = sin^2(x).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 17:10:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/help-with-con-statement/m-p/86948#M1195</guid>
      <dc:creator>WilliamHuber</dc:creator>
      <dc:date>2010-12-03T17:10:45Z</dc:date>
    </item>
  </channel>
</rss>

