PageRenderTime 23ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/1.0/generated/cf.Field.remove_item.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 188 lines | 164 code | 24 blank | 0 comment | 0 complexity | a57b3d848c061267b890cab9e0688caf 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.Field.remove_item &mdash; Documentation</title>
  7. <link rel="stylesheet" href="../_static/default.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.0',
  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="http://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.Field" href="../classes/cf.Field.html" />
  25. <link rel="next" title="cf.Field.remove_items" href="cf.Field.remove_items.html" />
  26. <link rel="prev" title="cf.Field.remove_data" href="cf.Field.remove_data.html" />
  27. </head>
  28. <body>
  29. <div class="related">
  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.Field.remove_items.html" title="cf.Field.remove_items"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.Field.remove_data.html" title="cf.Field.remove_data"
  40. accesskey="P">previous</a> |</li>
  41. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  42. <li><select onchange="location = this.options[this.selectedIndex].value;">
  43. <option value="../../1.0/index.html"selected>1.0
  44. <option value="../../0.9.9/index.html">0.9.9
  45. <option value="../../0.9.8.3/index.html">0.9.8.3
  46. <option value="../../archive.html">Archive
  47. </select>
  48. </li>
  49. <li><a href="../index.html">Documentation</a> &raquo;</li>
  50. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  51. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  52. <li><a href="../classes/cf.Field.html" accesskey="U">cf.Field</a> &raquo;</li>
  53. </ul>
  54. </div>
  55. <div class="document">
  56. <div class="documentwrapper">
  57. <div class="bodywrapper">
  58. <div class="body">
  59. <div class="section" id="cf-field-remove-item">
  60. <h1>cf.Field.remove_item<a class="headerlink" href="#cf-field-remove-item" title="Permalink to this headline">Âś</a></h1>
  61. <dl class="method">
  62. <dt id="cf.Field.remove_item">
  63. <tt class="descclassname">Field.</tt><tt class="descname">remove_item</tt><big>(</big><em>items=None</em>, <em>**kwargs</em><big>)</big><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.0/cf/field.py#cl-9499"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.Field.remove_item" title="Permalink to this definition">Âś</a></dt>
  64. <dd><p>Remove and return a domain item from the field.</p>
  65. <p>An item is either a dimension coordinate, an auxiliary coordinate, a
  66. cell measure or a coordinate reference object of the domain.</p>
  67. <p>The item may be selected with the keyword arguments. If no unique item
  68. can be found then no items are removed and <a class="reference external" href="http://docs.python.org/2.7/library/constants.html#None" title="(in Python v2.7)"><tt class="xref py py-obj docutils literal"><span class="pre">None</span></tt></a> is returned.</p>
  69. <div class="admonition seealso">
  70. <p class="first admonition-title">See also</p>
  71. <p class="last"><a class="reference internal" href="cf.Field.item.html#cf.Field.item" title="cf.Field.item"><tt class="xref py py-obj docutils literal"><span class="pre">item</span></tt></a>, <a class="reference internal" href="cf.Field.remove_axes.html#cf.Field.remove_axes" title="cf.Field.remove_axes"><tt class="xref py py-obj docutils literal"><span class="pre">remove_axes</span></tt></a>, <a class="reference internal" href="cf.Field.remove_axis.html#cf.Field.remove_axis" title="cf.Field.remove_axis"><tt class="xref py py-obj docutils literal"><span class="pre">remove_axis</span></tt></a>, <a class="reference internal" href="cf.Field.remove_items.html#cf.Field.remove_items" title="cf.Field.remove_items"><tt class="xref py py-obj docutils literal"><span class="pre">remove_items</span></tt></a></p>
  72. </div>
  73. <table class="docutils field-list" frame="void" rules="none">
  74. <col class="field-name" />
  75. <col class="field-body" />
  76. <tbody valign="top">
  77. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first docutils">
  78. <dt>items, kwargs <span class="classifier-delimiter">:</span> <span class="classifier"><em>optional</em></span></dt>
  79. <dd><p class="first last">Select the item which would be selected by this call of the
  80. field&#8217;s <a class="reference internal" href="cf.Field.item.html#cf.Field.item" title="cf.Field.item"><tt class="xref py py-obj docutils literal"><span class="pre">item</span></tt></a> method: <tt class="docutils literal"><span class="pre">f.item(items,</span> <span class="pre">**kwargs)</span></tt>. See
  81. <a class="reference internal" href="cf.Field.item.html#cf.Field.item" title="cf.Field.item"><tt class="xref py py-obj docutils literal"><span class="pre">cf.Field.item</span></tt></a> for details.</p>
  82. </dd>
  83. </dl>
  84. </td>
  85. </tr>
  86. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  87. <dt>out :</dt>
  88. <dd><p class="first last">The removed item, or <a class="reference external" href="http://docs.python.org/2.7/library/constants.html#None" title="(in Python v2.7)"><tt class="xref py py-obj docutils literal"><span class="pre">None</span></tt></a> if no unique item could be found.</p>
  89. </dd>
  90. </dl>
  91. </td>
  92. </tr>
  93. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  94. </tr>
  95. </tbody>
  96. </table>
  97. </dd></dl>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="sphinxsidebar">
  103. <div class="sphinxsidebarwrapper">
  104. <h4>Previous topic</h4>
  105. <p class="topless"><a href="cf.Field.remove_data.html"
  106. title="previous chapter">cf.Field.remove_data</a></p>
  107. <h4>Next topic</h4>
  108. <p class="topless"><a href="cf.Field.remove_items.html"
  109. title="next chapter">cf.Field.remove_items</a></p>
  110. <h3>This Page</h3>
  111. <ul class="this-page-menu">
  112. <li><a href="../_sources/generated/cf.Field.remove_item.txt"
  113. rel="nofollow">Show Source</a></li>
  114. </ul>
  115. <div id="searchbox" style="display: none">
  116. <h3>Quick search</h3>
  117. <form class="search" action="../search.html" method="get">
  118. <input type="text" name="q" />
  119. <input type="submit" value="Go" />
  120. <input type="hidden" name="check_keywords" value="yes" />
  121. <input type="hidden" name="area" value="default" />
  122. </form>
  123. <p class="searchtip" style="font-size: 90%">
  124. Enter search terms or a module, class or function name.
  125. </p>
  126. </div>
  127. <script type="text/javascript">$('#searchbox').show(0);</script>
  128. </div>
  129. </div>
  130. <div class="clearer"></div>
  131. </div>
  132. <div class="related">
  133. <h3>Navigation</h3>
  134. <ul>
  135. <li class="right" style="margin-right: 10px">
  136. <a href="../genindex.html" title="General Index"
  137. >index</a></li>
  138. <li class="right" >
  139. <a href="cf.Field.remove_items.html" title="cf.Field.remove_items"
  140. >next</a> |</li>
  141. <li class="right" >
  142. <a href="cf.Field.remove_data.html" title="cf.Field.remove_data"
  143. >previous</a> |</li>
  144. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  145. <li><select onchange="location = this.options[this.selectedIndex].value;">
  146. <option value="../../1.0/index.html"selected>1.0
  147. <option value="../../0.9.9/index.html">0.9.9
  148. <option value="../../0.9.8.3/index.html">0.9.8.3
  149. <option value="../../archive.html">Archive
  150. </select>
  151. </li>
  152. <li><a href="../index.html">Documentation</a> &raquo;</li>
  153. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  154. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  155. <li><a href="../classes/cf.Field.html" >cf.Field</a> &raquo;</li>
  156. </ul>
  157. </div>
  158. <div class="footer">
  159. &copy; Copyright 2015, David Hassell.
  160. Last updated on May 27, 2015.
  161. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
  162. </div>
  163. </body>
  164. </html>