<?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: Field Calculator Null Values in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724073#M56068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a correct field type to receive the output?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 13:45:47 GMT</pubDate>
    <dc:creator>JimCousins</dc:creator>
    <dc:date>2013-08-07T13:45:47Z</dc:date>
    <item>
      <title>Field Calculator Null Values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724072#M56067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to calculate the incomplete gamma function using Python. For now, the only way that I have found to do this is by using the library "mpmath". Particularly, the "mpmath.gammainc" function works perfectly in the Python window but when I try to implement this function in the field calculator it gives "Null" values. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def H(a):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; import mpmath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; b=mpmath.gammainc(a,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return b&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any solution for solving this problem? Is there any alternative method for calculating the incomplete gamma function? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oswaldo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724072#M56067</guid>
      <dc:creator>OswaldoBarrera_Martin</dc:creator>
      <dc:date>2013-08-07T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator Null Values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724073#M56068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a correct field type to receive the output?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 13:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724073#M56068</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2013-08-07T13:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator Null Values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724074#M56069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See Distributions.py on our ArcGIS Online site&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://carleton-u.maps.arcgis.com/home/item.html?id=076912624eaa4043bb46ef5068e12626"&gt;http://carleton-u.maps.arcgis.com/home/item.html?id=076912624eaa4043bb46ef5068e12626&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 13:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724074#M56069</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2013-08-07T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator Null Values</title>
      <link>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724075#M56070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you have a correct field type to receive the output?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with Float, Double and integers. In all the cases, the "null" value was the output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 15:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-calculator-null-values/m-p/724075#M56070</guid>
      <dc:creator>OswaldoBarrera_Martin</dc:creator>
      <dc:date>2013-08-07T15:09:10Z</dc:date>
    </item>
  </channel>
</rss>

