PageRenderTime 53ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 200 lines | 176 code | 24 blank | 0 comment | 0 complexity | 785a23030c2d686d61efd72136ec0511 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.insert_ref &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.iscyclic" href="cf.Field.iscyclic.html" />
  26. <link rel="prev" title="cf.Field.insert_measure" href="cf.Field.insert_measure.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.iscyclic.html" title="cf.Field.iscyclic"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.Field.insert_measure.html" title="cf.Field.insert_measure"
  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-insert-ref">
  60. <h1>cf.Field.insert_ref<a class="headerlink" href="#cf-field-insert-ref" title="Permalink to this headline">Âś</a></h1>
  61. <dl class="method">
  62. <dt id="cf.Field.insert_ref">
  63. <tt class="descclassname">Field.</tt><tt class="descname">insert_ref</tt><big>(</big><em>item</em>, <em>key=None</em>, <em>copy=True</em>, <em>replace=True</em><big>)</big><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.0/cf/field.py#cl-8949"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.Field.insert_ref" title="Permalink to this definition">Âś</a></dt>
  64. <dd><p>Insert a coordinate reference object into the domain in place.</p>
  65. <div class="admonition seealso">
  66. <p class="first admonition-title">See also</p>
  67. <p class="last"><a class="reference internal" href="cf.Field.insert_axis.html#cf.Field.insert_axis" title="cf.Field.insert_axis"><tt class="xref py py-obj docutils literal"><span class="pre">insert_axis</span></tt></a>, <a class="reference internal" href="cf.Field.insert_aux.html#cf.Field.insert_aux" title="cf.Field.insert_aux"><tt class="xref py py-obj docutils literal"><span class="pre">insert_aux</span></tt></a>, <a class="reference internal" href="cf.Field.insert_measure.html#cf.Field.insert_measure" title="cf.Field.insert_measure"><tt class="xref py py-obj docutils literal"><span class="pre">insert_measure</span></tt></a>,
  68. <a class="reference internal" href="cf.Field.insert_data.html#cf.Field.insert_data" title="cf.Field.insert_data"><tt class="xref py py-obj docutils literal"><span class="pre">insert_data</span></tt></a>, <a class="reference internal" href="cf.Field.insert_dim.html#cf.Field.insert_dim" title="cf.Field.insert_dim"><tt class="xref py py-obj docutils literal"><span class="pre">insert_dim</span></tt></a></p>
  69. </div>
  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>item <span class="classifier-delimiter">:</span> <span class="classifier">cf.CoordinateReference</span></dt>
  76. <dd><p class="first last">The new coordinate reference object.</p>
  77. </dd>
  78. <dt>key <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span></dt>
  79. <dd><p class="first last">The domain identifier for the <em>item</em>. By default a new, unique
  80. identifier will be generated.</p>
  81. </dd>
  82. <dt>copy: bool, optional</dt>
  83. <dd><p class="first last">If False then the <em>item</em> is not copied before insertion. By
  84. default it is copied.</p>
  85. </dd>
  86. <dt>replace <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
  87. <dd><p class="first last">If False then do not replace an existing coordinate reference object of
  88. domain which has the same identifier. By default an existing
  89. coordinate reference object with the same identifier is replaced with
  90. <em>item</em>.</p>
  91. </dd>
  92. </dl>
  93. </td>
  94. </tr>
  95. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  96. <dt>out <span class="classifier-delimiter">:</span> <span class="classifier"></span></dt>
  97. <dd><p class="first last">The domain identifier for the <em>item</em>.</p>
  98. </dd>
  99. </dl>
  100. </td>
  101. </tr>
  102. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <div class="highlight-python"><div class="highlight"><pre><span class="go">&gt;&gt;&gt;</span>
  107. </pre></div>
  108. </div>
  109. </dd></dl>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="sphinxsidebar">
  115. <div class="sphinxsidebarwrapper">
  116. <h4>Previous topic</h4>
  117. <p class="topless"><a href="cf.Field.insert_measure.html"
  118. title="previous chapter">cf.Field.insert_measure</a></p>
  119. <h4>Next topic</h4>
  120. <p class="topless"><a href="cf.Field.iscyclic.html"
  121. title="next chapter">cf.Field.iscyclic</a></p>
  122. <h3>This Page</h3>
  123. <ul class="this-page-menu">
  124. <li><a href="../_sources/generated/cf.Field.insert_ref.txt"
  125. rel="nofollow">Show Source</a></li>
  126. </ul>
  127. <div id="searchbox" style="display: none">
  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">
  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.Field.iscyclic.html" title="cf.Field.iscyclic"
  152. >next</a> |</li>
  153. <li class="right" >
  154. <a href="cf.Field.insert_measure.html" title="cf.Field.insert_measure"
  155. >previous</a> |</li>
  156. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  157. <li><select onchange="location = this.options[this.selectedIndex].value;">
  158. <option value="../../1.0/index.html"selected>1.0
  159. <option value="../../0.9.9/index.html">0.9.9
  160. <option value="../../0.9.8.3/index.html">0.9.8.3
  161. <option value="../../archive.html">Archive
  162. </select>
  163. </li>
  164. <li><a href="../index.html">Documentation</a> &raquo;</li>
  165. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  166. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  167. <li><a href="../classes/cf.Field.html" >cf.Field</a> &raquo;</li>
  168. </ul>
  169. </div>
  170. <div class="footer">
  171. &copy; Copyright 2015, David Hassell.
  172. Last updated on May 27, 2015.
  173. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
  174. </div>
  175. </body>
  176. </html>