PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/1.1.8/generated/cf.DimensionCoordinate.mid_range.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 203 lines | 159 code | 14 blank | 30 comment | 0 complexity | 1fcdc49276595cca45533bd853e37da2 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.DimensionCoordinate.mid_range &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.DimensionCoordinate" href="../classes/cf.DimensionCoordinate.html" />
  25. <link rel="next" title="cf.DimensionCoordinate.min" href="cf.DimensionCoordinate.min.html" />
  26. <link rel="prev" title="cf.DimensionCoordinate.mean" href="cf.DimensionCoordinate.mean.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.DimensionCoordinate.min.html" title="cf.DimensionCoordinate.min"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.DimensionCoordinate.mean.html" title="cf.DimensionCoordinate.mean"
  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.DimensionCoordinate.html" accesskey="U">cf.DimensionCoordinate</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-dimensioncoordinate-mid-range">
  63. <h1>cf.DimensionCoordinate.mid_range<a class="headerlink" href="#cf-dimensioncoordinate-mid-range" title="Permalink to this headline">Âś</a></h1>
  64. <dl class="method">
  65. <dt id="cf.DimensionCoordinate.mid_range">
  66. <code class="descclassname">DimensionCoordinate.</code><code class="descname">mid_range</code><span class="sig-paren">(</span><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-2566"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.DimensionCoordinate.mid_range" title="Permalink to this definition">Âś</a></dt>
  67. <dd><p>The unweighted average of the maximum and minimum of
  68. the data array.</p>
  69. <div class="admonition seealso">
  70. <p class="first admonition-title">See also</p>
  71. <p class="last"><code class="xref py py-obj docutils literal"><span class="pre">collapse</span></code>, <a class="reference internal" href="cf.DimensionCoordinate.max.html#cf.DimensionCoordinate.max" title="cf.DimensionCoordinate.max"><code class="xref py py-obj docutils literal"><span class="pre">max</span></code></a>, <a class="reference internal" href="cf.DimensionCoordinate.mean.html#cf.DimensionCoordinate.mean" title="cf.DimensionCoordinate.mean"><code class="xref py py-obj docutils literal"><span class="pre">mean</span></code></a>, <a class="reference internal" href="cf.DimensionCoordinate.min.html#cf.DimensionCoordinate.min" title="cf.DimensionCoordinate.min"><code class="xref py py-obj docutils literal"><span class="pre">min</span></code></a>, <a class="reference internal" href="cf.DimensionCoordinate.range.html#cf.DimensionCoordinate.range" title="cf.DimensionCoordinate.range"><code class="xref py py-obj docutils literal"><span class="pre">range</span></code></a>,
  72. <a class="reference internal" href="cf.DimensionCoordinate.sample_size.html#cf.DimensionCoordinate.sample_size" title="cf.DimensionCoordinate.sample_size"><code class="xref py py-obj docutils literal"><span class="pre">sample_size</span></code></a>, <a class="reference internal" href="cf.DimensionCoordinate.sd.html#cf.DimensionCoordinate.sd" title="cf.DimensionCoordinate.sd"><code class="xref py py-obj docutils literal"><span class="pre">sd</span></code></a>, <a class="reference internal" href="cf.DimensionCoordinate.sum.html#cf.DimensionCoordinate.sum" title="cf.DimensionCoordinate.sum"><code class="xref py py-obj docutils literal"><span class="pre">sum</span></code></a>, <a class="reference internal" href="cf.DimensionCoordinate.var.html#cf.DimensionCoordinate.var" title="cf.DimensionCoordinate.var"><code class="xref py py-obj docutils literal"><span class="pre">var</span></code></a></p>
  73. </div>
  74. <table class="docutils field-list" frame="void" rules="none">
  75. <col class="field-name" />
  76. <col class="field-body" />
  77. <tbody valign="top">
  78. <tr class="field-odd field"><th class="field-name">Examples 1:</th><td class="field-body"></td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">d</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">mid_range</span><span class="p">()</span>
  83. </pre></div>
  84. </div>
  85. <table class="docutils field-list" frame="void" rules="none">
  86. <col class="field-name" />
  87. <col class="field-body" />
  88. <tbody valign="top">
  89. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  90. <dt>out <span class="classifier-delimiter">:</span> <span class="classifier">cf.Data</span></dt>
  91. <dd><p class="first last">The unweighted average of the maximum and minimum of the
  92. data array.</p>
  93. </dd>
  94. </dl>
  95. </td>
  96. </tr>
  97. <tr class="field-even field"><th class="field-name">Examples 2:</th><td class="field-body"></td>
  98. </tr>
  99. </tbody>
  100. </table>
  101. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="o">.</span><span class="n">data</span>
  102. <span class="go">&lt;CF Data: [[[236.512756348, ..., 256.93371582]]] K&gt;</span>
  103. <span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="o">.</span><span class="n">mid_range</span><span class="p">()</span>
  104. <span class="go">&lt;CF Data: 255.08618927 K&gt;</span>
  105. </pre></div>
  106. </div>
  107. </dd></dl>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  113. <div class="sphinxsidebarwrapper">
  114. <h4>Previous topic</h4>
  115. <p class="topless"><a href="cf.DimensionCoordinate.mean.html"
  116. title="previous chapter">cf.DimensionCoordinate.mean</a></p>
  117. <h4>Next topic</h4>
  118. <p class="topless"><a href="cf.DimensionCoordinate.min.html"
  119. title="next chapter">cf.DimensionCoordinate.min</a></p>
  120. <div role="note" aria-label="source link">
  121. <h3>This Page</h3>
  122. <ul class="this-page-menu">
  123. <li><a href="../_sources/generated/cf.DimensionCoordinate.mid_range.txt"
  124. rel="nofollow">Show Source</a></li>
  125. </ul>
  126. </div>
  127. <div id="searchbox" style="display: none" role="search">
  128. <h3>Quick search</h3>
  129. <form class="search" action="../search.html" method="get">
  130. <input type="text" name="q" />
  131. <input type="submit" value="Go" />
  132. <input type="hidden" name="check_keywords" value="yes" />
  133. <input type="hidden" name="area" value="default" />
  134. </form>
  135. <p class="searchtip" style="font-size: 90%">
  136. Enter search terms or a module, class or function name.
  137. </p>
  138. </div>
  139. <script type="text/javascript">$('#searchbox').show(0);</script>
  140. </div>
  141. </div>
  142. <div class="clearer"></div>
  143. </div>
  144. <div class="related" role="navigation" aria-label="related navigation">
  145. <h3>Navigation</h3>
  146. <ul>
  147. <li class="right" style="margin-right: 10px">
  148. <a href="../genindex.html" title="General Index"
  149. >index</a></li>
  150. <li class="right" >
  151. <a href="cf.DimensionCoordinate.min.html" title="cf.DimensionCoordinate.min"
  152. >next</a> |</li>
  153. <li class="right" >
  154. <a href="cf.DimensionCoordinate.mean.html" title="cf.DimensionCoordinate.mean"
  155. >previous</a> |</li>
  156. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1.8</a> &raquo;</li>
  157. <!--
  158. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  159. <li><select onchange="location = this.options[this.selectedIndex].value;">
  160. <option value="../../1.0/index.html">1.0
  161. <option value="../../0.9.9/index.html">0.9.9
  162. <option value="../../0.9.8.3/index.html">0.9.8.3
  163. <option value="../../archive.html">Archive
  164. </select>
  165. </li>
  166. -->
  167. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &raquo;</li>
  168. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &raquo;</li>
  169. <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>
  170. <li class="nav-item nav-item-3"><a href="../classes/cf.DimensionCoordinate.html" >cf.DimensionCoordinate</a> &raquo;</li>
  171. </ul>
  172. </div>
  173. <div class="footer" role="contentinfo">
  174. &copy; Copyright 2016, David Hassell.
  175. Last updated on May 18, 2016.
  176. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
  177. </div>
  178. </body>
  179. </html>