<?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: Calculating hydrant flow formula with field calculator or Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556699#M43524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan that was in fact the issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 19:11:27 GMT</pubDate>
    <dc:creator>KyleCrawford2</dc:creator>
    <dc:date>2016-07-06T19:11:27Z</dc:date>
    <item>
      <title>Calculating hydrant flow formula with field calculator or Python</title>
      <link>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556697#M43522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently managing a hydrant inspection project and was tasked with automating the hydrant flow formula @ 20 psi and 0 psi. I opted to test the formula out in Field Calculator using Python but end up with the wrong values. I know this should have been simple to figure out but any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula: Flow @ 20 psi = Test flow (gpm) x ((Static – 20) / (Static – residual))^0.54&lt;/P&gt;&lt;P&gt;Field Calculator using Python Parser = !DISCHARGEGPM! * (( !STATICPSI! - 20) / ( !STATICPSI! - !RESIDUALPSI! )) ** 0.54&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Discharge GPM: 1190 &lt;/P&gt;&lt;P&gt;Static PSI: 66&lt;/P&gt;&lt;P&gt;Residual PSI: 50&lt;/P&gt;&lt;P&gt;1190&amp;nbsp; x ((66 – 20) / (66 – 50)) ^ 0.54 = 2105 GPM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Calculator Result = 1730 GPM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556697#M43522</guid>
      <dc:creator>KyleCrawford2</dc:creator>
      <dc:date>2016-07-06T18:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating hydrant flow formula with field calculator or Python</title>
      <link>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556698#M43523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;assuming the brackets are right, you might be getting integer division soooo, &lt;/P&gt;&lt;P&gt;!DISCHARGEGPM! * (( !STATICPSI! -&lt;STRONG&gt; 20.0)&lt;/STRONG&gt; / ( !STATICPSI! - !RESIDUALPSI! )) ** 0.54&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556698#M43523</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-06T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating hydrant flow formula with field calculator or Python</title>
      <link>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556699#M43524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan that was in fact the issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 19:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-hydrant-flow-formula-with-field/m-p/556699#M43524</guid>
      <dc:creator>KyleCrawford2</dc:creator>
      <dc:date>2016-07-06T19:11:27Z</dc:date>
    </item>
  </channel>
</rss>

