PageRenderTime 45ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 215 lines | 171 code | 14 blank | 30 comment | 0 complexity | f7326cb0d32c742a624a9f69125bd5ef 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.get_bounds &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.getprop" href="cf.DimensionCoordinate.getprop.html" />
  26. <link rel="prev" title="cf.DimensionCoordinate.flip" href="cf.DimensionCoordinate.flip.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.getprop.html" title="cf.DimensionCoordinate.getprop"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.DimensionCoordinate.flip.html" title="cf.DimensionCoordinate.flip"
  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-get-bounds">
  63. <h1>cf.DimensionCoordinate.get_bounds<a class="headerlink" href="#cf-dimensioncoordinate-get-bounds" title="Permalink to this headline">Âś</a></h1>
  64. <dl class="method">
  65. <dt id="cf.DimensionCoordinate.get_bounds">
  66. <code class="descclassname">DimensionCoordinate.</code><code class="descname">get_bounds</code><span class="sig-paren">(</span><em>create=False</em>, <em>insert=False</em>, <em>bound=None</em>, <em>cellsize=None</em>, <em>copy=True</em><span class="sig-paren">)</span><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.1.8/cf/coordinate.py#coordinate.py-2729"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.DimensionCoordinate.get_bounds" title="Permalink to this definition">Âś</a></dt>
  67. <dd><p>Get the cell bounds.</p>
  68. <p>Either return its existing bounds or, if there are none, optionally
  69. create bounds based on the coordinate array values.</p>
  70. <table class="docutils field-list" frame="void" rules="none">
  71. <col class="field-name" />
  72. <col class="field-body" />
  73. <tbody valign="top">
  74. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first docutils">
  75. <dt>create <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
  76. <dd><p class="first last">If True then create bounds if and only if the the dimension
  77. coordinate does not already have them. Bounds for Voronoi
  78. cells are created unless <em>bound</em> is set.</p>
  79. </dd>
  80. <dt>insert <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional </span></dt>
  81. <dd><p class="first last">If True then insert the created bounds into the coordinate in
  82. place. By default the created bounds are not inserted. Ignored
  83. if <em>create</em> is not True.</p>
  84. </dd>
  85. <dt>bound <span class="classifier-delimiter">:</span> <span class="classifier"><em>optional</em></span></dt>
  86. <dd><p class="first last">If set to an upper or lower bound for the whole array, then
  87. bounds are created which include this value and for which each
  88. array element is in the centre of its bounds. By default
  89. bounds for Voronoi cells are created. Ignored if <em>create</em> is
  90. not True.</p>
  91. </dd>
  92. <dt>copy <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
  93. <dd><p class="first last">If False then the returned bounds are not independent of the
  94. existing bounds, if any, or those inserted, if <em>create</em> and
  95. <em>insert</em> are both True. By default the returned bounds are
  96. independent.</p>
  97. </dd>
  98. </dl>
  99. </td>
  100. </tr>
  101. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  102. <dt>out <span class="classifier-delimiter">:</span> <span class="classifier">cf.CoordinateBounds</span></dt>
  103. <dd><p class="first last">The existing or created bounds.</p>
  104. </dd>
  105. </dl>
  106. </td>
  107. </tr>
  108. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">c</span><span class="o">.</span><span class="n">get_bounds</span><span class="p">()</span>
  113. <span class="gp">&gt;&gt;&gt; </span><span class="n">c</span><span class="o">.</span><span class="n">get_bounds</span><span class="p">(</span><span class="n">create</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
  114. <span class="gp">&gt;&gt;&gt; </span><span class="n">c</span><span class="o">.</span><span class="n">get_bounds</span><span class="p">(</span><span class="n">create</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">bound</span><span class="o">=</span><span class="mi">60</span><span class="p">)</span>
  115. <span class="gp">&gt;&gt;&gt; </span><span class="n">c</span><span class="o">.</span><span class="n">get_bounds</span><span class="p">(</span><span class="n">create</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">insert</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
  116. <span class="gp">&gt;&gt;&gt; </span><span class="n">c</span><span class="o">.</span><span class="n">get_bounds</span><span class="p">(</span><span class="n">create</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">bound</span><span class="o">=-</span><span class="mf">9000.0</span><span class="p">,</span> <span class="n">insert</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="bp">False</span><span class="p">)</span>
  117. </pre></div>
  118. </div>
  119. </dd></dl>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  125. <div class="sphinxsidebarwrapper">
  126. <h4>Previous topic</h4>
  127. <p class="topless"><a href="cf.DimensionCoordinate.flip.html"
  128. title="previous chapter">cf.DimensionCoordinate.flip</a></p>
  129. <h4>Next topic</h4>
  130. <p class="topless"><a href="cf.DimensionCoordinate.getprop.html"
  131. title="next chapter">cf.DimensionCoordinate.getprop</a></p>
  132. <div role="note" aria-label="source link">
  133. <h3>This Page</h3>
  134. <ul class="this-page-menu">
  135. <li><a href="../_sources/generated/cf.DimensionCoordinate.get_bounds.txt"
  136. rel="nofollow">Show Source</a></li>
  137. </ul>
  138. </div>
  139. <div id="searchbox" style="display: none" role="search">
  140. <h3>Quick search</h3>
  141. <form class="search" action="../search.html" method="get">
  142. <input type="text" name="q" />
  143. <input type="submit" value="Go" />
  144. <input type="hidden" name="check_keywords" value="yes" />
  145. <input type="hidden" name="area" value="default" />
  146. </form>
  147. <p class="searchtip" style="font-size: 90%">
  148. Enter search terms or a module, class or function name.
  149. </p>
  150. </div>
  151. <script type="text/javascript">$('#searchbox').show(0);</script>
  152. </div>
  153. </div>
  154. <div class="clearer"></div>
  155. </div>
  156. <div class="related" role="navigation" aria-label="related navigation">
  157. <h3>Navigation</h3>
  158. <ul>
  159. <li class="right" style="margin-right: 10px">
  160. <a href="../genindex.html" title="General Index"
  161. >index</a></li>
  162. <li class="right" >
  163. <a href="cf.DimensionCoordinate.getprop.html" title="cf.DimensionCoordinate.getprop"
  164. >next</a> |</li>
  165. <li class="right" >
  166. <a href="cf.DimensionCoordinate.flip.html" title="cf.DimensionCoordinate.flip"
  167. >previous</a> |</li>
  168. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1.8</a> &raquo;</li>
  169. <!--
  170. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  171. <li><select onchange="location = this.options[this.selectedIndex].value;">
  172. <option value="../../1.0/index.html">1.0
  173. <option value="../../0.9.9/index.html">0.9.9
  174. <option value="../../0.9.8.3/index.html">0.9.8.3
  175. <option value="../../archive.html">Archive
  176. </select>
  177. </li>
  178. -->
  179. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &raquo;</li>
  180. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &raquo;</li>
  181. <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>
  182. <li class="nav-item nav-item-3"><a href="../classes/cf.DimensionCoordinate.html" >cf.DimensionCoordinate</a> &raquo;</li>
  183. </ul>
  184. </div>
  185. <div class="footer" role="contentinfo">
  186. &copy; Copyright 2016, David Hassell.
  187. Last updated on May 18, 2016.
  188. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
  189. </div>
  190. </body>
  191. </html>