PageRenderTime 54ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/1.1.8/generated/cf.Variable.setprop.html

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