<?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: Runoff Raster Layer Calculator 10.4 in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739732#M10732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator&lt;/A&gt;, just write the expression on the right, i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 11.5pt;"&gt;Con(((0.2)*S)&amp;gt;(3.01),0,(&lt;SPAN style="background: white;"&gt;&lt;SPAN&gt;(((3.01)–((0.2)*S))**2)/((3.01)+((0.8)*S))))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style=": ; color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;SPAN&gt;Replace S with the Soil_Retension Raster, in the above equation.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 04:39:57 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2017-06-02T04:39:57Z</dc:date>
    <item>
      <title>Runoff Raster Layer Calculator 10.4</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739730#M10730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a runoff layer using this equation:&lt;/P&gt;&lt;P&gt;Q = (P – 0.2S)2 / (P + 0.8S)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The S in this equation is a soil retention layer that I made using this equation with curve numbers:&lt;/P&gt;&lt;P&gt;S = (1000.0 / CN) – 10.0 &amp;nbsp;&lt;/P&gt;&lt;P&gt;P, in this instance, is&amp;nbsp;rainfall total for the storm-- in this case, a one-year storm for the watershed I am studying. I only have one value for P (3.01).&lt;/P&gt;&lt;P&gt;The soil retention layer is working, but the runoff layer isn't going through. I keep getting this error message when I type out the equation: "Error 000989: Python syntax error; parsing error; SyntaxError: invalid syntax (Line 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instructions I have are part of a lab, and they also have this addendum:&lt;/P&gt;&lt;P&gt;"Use the S layer along with the P value to compute a Q layer, a cell by cell runoff layer from the 1-year storm. Use the standard equation below (assumes “normal soil moisture at the beginning of the storm”): Q runoff (inches) P rainfall total for the storm (inches) VERY IMPORTANT: Runoff does not start until P is greater than 0.2S. If P &amp;lt; 0.2S, then Q=0. You will need to set runoff to “0” in cells where P &amp;lt; 0.2S. Note the raster calculator Con function is helpful here."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i'm not sure where to go from here, since everything I have tried thus far, including the usage of the Con function, have not worked. Any suggestions are welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 01:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739730#M10730</guid>
      <dc:creator>SarahDawson</dc:creator>
      <dc:date>2017-06-02T01:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Runoff Raster Layer Calculator 10.4</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739731#M10731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did NOT mean to post this three times, oops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 02:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739731#M10731</guid>
      <dc:creator>SarahDawson</dc:creator>
      <dc:date>2017-06-02T02:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Runoff Raster Layer Calculator 10.4</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739732#M10732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator&lt;/A&gt;, just write the expression on the right, i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 11.5pt;"&gt;Con(((0.2)*S)&amp;gt;(3.01),0,(&lt;SPAN style="background: white;"&gt;&lt;SPAN&gt;(((3.01)–((0.2)*S))**2)/((3.01)+((0.8)*S))))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style=": ; color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;SPAN&gt;Replace S with the Soil_Retension Raster, in the above equation.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 04:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739732#M10732</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-06-02T04:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Runoff Raster Layer Calculator 10.4</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739733#M10733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the solution that&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/62883"&gt;Jayanta Poddar&lt;/A&gt;&amp;nbsp;provided will work, although you could probably reduce the number of brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up with:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Con(3.01 &amp;lt; 0.2*S, 0, (3.01 – 0.2*S)**2 / (3.01 + 0.8*S)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... assuming that the &lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt; in&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Q = (P – 0.2S)&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt; / (P + 0.8S) is a square:&amp;nbsp;&lt;SPAN&gt;Q = (P – 0.2S)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;²&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;/ (P + 0.8S)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you don't want to calculate the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;soil retention&amp;nbsp;before, you could do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Con(3.01 &amp;lt; 0.2*((1000.0 / CN) – 10.0), 0, (3.01 – 0.2*((1000.0 / CN) – 10.0))**2 / (3.01 + 0.8*((1000.0 / CN) – 10.0))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that you are dividing by&amp;nbsp;CN. In case CN is 0, this will result in NoData values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 12:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/runoff-raster-layer-calculator-10-4/m-p/739733#M10733</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-06-02T12:14:07Z</dc:date>
    </item>
  </channel>
</rss>

