PageRenderTime 46ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/1.1.8/generated/cf.FieldList.exp.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 227 lines | 183 code | 14 blank | 30 comment | 0 complexity | 33881546ea5298c454c73f0cd6a960fc MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>cf.FieldList.exp &mdash; Documentation</title>
  7. <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '1.1.8',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../_static/doctools.js"></script>
  21. <script type="text/javascript" src="../_static/copybutton.js"></script>
  22. <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  23. <link rel="top" title="Documentation" href="../index.html" />
  24. <link rel="up" title="cf.FieldList" href="../classes/cf.FieldList.html" />
  25. <link rel="next" title="cf.FieldList.log" href="cf.FieldList.log.html" />
  26. <link rel="prev" title="cf.FieldList.tan" href="cf.FieldList.tan.html" />
  27. </head>
  28. <body role="document">
  29. <div class="related" role="navigation" aria-label="related navigation">
  30. <h3>Navigation</h3>
  31. <ul>
  32. <li class="right" style="margin-right: 10px">
  33. <a href="../genindex.html" title="General Index"
  34. accesskey="I">index</a></li>
  35. <li class="right" >
  36. <a href="cf.FieldList.log.html" title="cf.FieldList.log"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.FieldList.tan.html" title="cf.FieldList.tan"
  40. accesskey="P">previous</a> |</li>
  41. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1.8</a> &raquo;</li>
  42. <!--
  43. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  44. <li><select onchange="location = this.options[this.selectedIndex].value;">
  45. <option value="../../1.0/index.html">1.0
  46. <option value="../../0.9.9/index.html">0.9.9
  47. <option value="../../0.9.8.3/index.html">0.9.8.3
  48. <option value="../../archive.html">Archive
  49. </select>
  50. </li>
  51. -->
  52. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &raquo;</li>
  53. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &raquo;</li>
  54. <li class="nav-item nav-item-2"><a href="../class.html" >Classes of the <code class="docutils literal"><span class="pre">cf</span></code> module</a> &raquo;</li>
  55. <li class="nav-item nav-item-3"><a href="../classes/cf.FieldList.html" accesskey="U">cf.FieldList</a> &raquo;</li>
  56. </ul>
  57. </div>
  58. <div class="document">
  59. <div class="documentwrapper">
  60. <div class="bodywrapper">
  61. <div class="body" role="main">
  62. <div class="section" id="cf-fieldlist-exp">
  63. <h1>cf.FieldList.exp<a class="headerlink" href="#cf-fieldlist-exp" title="Permalink to this headline">Âś</a></h1>
  64. <dl class="method">
  65. <dt id="cf.FieldList.exp">
  66. <code class="descclassname">FieldList.</code><code class="descname">exp</code><span class="sig-paren">(</span><em>i=False</em><span class="sig-paren">)</span><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.1.8/cf/variable.py#variable.py-5459"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.FieldList.exp" title="Permalink to this definition">Âś</a></dt>
  67. <dd><p>For each field, the exponential of the data array.</p>
  68. <div class="admonition seealso">
  69. <p class="first admonition-title">See also</p>
  70. <p class="last"><a class="reference internal" href="cf.FieldList.log.html#cf.FieldList.log" title="cf.FieldList.log"><code class="xref py py-obj docutils literal"><span class="pre">log</span></code></a></p>
  71. </div>
  72. <table class="docutils field-list" frame="void" rules="none">
  73. <col class="field-name" />
  74. <col class="field-body" />
  75. <tbody valign="top">
  76. <tr class="field-odd field"><th class="field-name">Examples 1:</th><td class="field-body"></td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">g</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">exp</span><span class="p">()</span>
  81. </pre></div>
  82. </div>
  83. <table class="docutils field-list" frame="void" rules="none">
  84. <col class="field-name" />
  85. <col class="field-body" />
  86. <tbody valign="top">
  87. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first docutils">
  88. <dt>i <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
  89. <dd><p class="first last">If True then update the field list in place. By default a new
  90. field list is created. In either case, a field list is
  91. returned.</p>
  92. </dd>
  93. </dl>
  94. </td>
  95. </tr>
  96. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  97. <dt>out <span class="classifier-delimiter">:</span> <span class="classifier">cf.FieldList</span></dt>
  98. <dd><p class="first last">For each field, the field list with the exponential of data array
  99. values.</p>
  100. </dd>
  101. </dl>
  102. </td>
  103. </tr>
  104. <tr class="field-odd field"><th class="field-name">Examples 2:</th><td class="field-body"></td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">data</span>
  109. <span class="go">&lt;CF Data: [[1, 2]]&gt;</span>
  110. <span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="o">.</span><span class="n">exp</span><span class="p">()[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">data</span>
  111. <span class="go">&lt;CF Data: [[2.71828182846, 7.38905609893]]&gt;</span>
  112. </pre></div>
  113. </div>
  114. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">data</span>
  115. <span class="go">&lt;CF Data: [[1, 2]] 2&gt;</span>
  116. <span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="o">.</span><span class="n">exp</span><span class="p">()[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">data</span>
  117. <span class="go">&lt;CF Data: [[7.38905609893, 54.5981500331]]&gt;</span>
  118. </pre></div>
  119. </div>
  120. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">g</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">exp</span><span class="p">(</span><span class="n">i</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
  121. <span class="gp">&gt;&gt;&gt; </span><span class="n">g</span> <span class="ow">is</span> <span class="n">f</span>
  122. <span class="go">True</span>
  123. </pre></div>
  124. </div>
  125. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">data</span>
  126. <span class="go">&lt;CF Data: [[1, 2]] kg m-1 s-2&gt;</span>
  127. <span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="o">.</span><span class="n">exp</span><span class="p">()</span>
  128. <span class="go">ValueError: Can&#39;t take exponential of dimensional quantities: &lt;CF Units: kg m-1 s-2&gt;</span>
  129. </pre></div>
  130. </div>
  131. </dd></dl>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  137. <div class="sphinxsidebarwrapper">
  138. <h4>Previous topic</h4>
  139. <p class="topless"><a href="cf.FieldList.tan.html"
  140. title="previous chapter">cf.FieldList.tan</a></p>
  141. <h4>Next topic</h4>
  142. <p class="topless"><a href="cf.FieldList.log.html"
  143. title="next chapter">cf.FieldList.log</a></p>
  144. <div role="note" aria-label="source link">
  145. <h3>This Page</h3>
  146. <ul class="this-page-menu">
  147. <li><a href="../_sources/generated/cf.FieldList.exp.txt"
  148. rel="nofollow">Show Source</a></li>
  149. </ul>
  150. </div>
  151. <div id="searchbox" style="display: none" role="search">
  152. <h3>Quick search</h3>
  153. <form class="search" action="../search.html" method="get">
  154. <input type="text" name="q" />
  155. <input type="submit" value="Go" />
  156. <input type="hidden" name="check_keywords" value="yes" />
  157. <input type="hidden" name="area" value="default" />
  158. </form>
  159. <p class="searchtip" style="font-size: 90%">
  160. Enter search terms or a module, class or function name.
  161. </p>
  162. </div>
  163. <script type="text/javascript">$('#searchbox').show(0);</script>
  164. </div>
  165. </div>
  166. <div class="clearer"></div>
  167. </div>
  168. <div class="related" role="navigation" aria-label="related navigation">
  169. <h3>Navigation</h3>
  170. <ul>
  171. <li class="right" style="margin-right: 10px">
  172. <a href="../genindex.html" title="General Index"
  173. >index</a></li>
  174. <li class="right" >
  175. <a href="cf.FieldList.log.html" title="cf.FieldList.log"
  176. >next</a> |</li>
  177. <li class="right" >
  178. <a href="cf.FieldList.tan.html" title="cf.FieldList.tan"
  179. >previous</a> |</li>
  180. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1.8</a> &raquo;</li>
  181. <!--
  182. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  183. <li><select onchange="location = this.options[this.selectedIndex].value;">
  184. <option value="../../1.0/index.html">1.0
  185. <option value="../../0.9.9/index.html">0.9.9
  186. <option value="../../0.9.8.3/index.html">0.9.8.3
  187. <option value="../../archive.html">Archive
  188. </select>
  189. </li>
  190. -->
  191. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &raquo;</li>
  192. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &raquo;</li>
  193. <li class="nav-item nav-item-2"><a href="../class.html" >Classes of the <code class="docutils literal"><span class="pre">cf</span></code> module</a> &raquo;</li>
  194. <li class="nav-item nav-item-3"><a href="../classes/cf.FieldList.html" >cf.FieldList</a> &raquo;</li>
  195. </ul>
  196. </div>
  197. <div class="footer" role="contentinfo">
  198. &copy; Copyright 2016, David Hassell.
  199. Last updated on May 18, 2016.
  200. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
  201. </div>
  202. </body>
  203. </html>