PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/1.2.3/generated/cf.Field.missing_value.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 190 lines | 146 code | 14 blank | 30 comment | 0 complexity | 6d8bcd61bfcb2354d1710bdd147c2944 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.missing_value &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.2.3',
  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.Field" href="../classes/cf.Field.html" />
  25. <link rel="next" title="cf.Field.month_lengths" href="cf.Field.month_lengths.html" />
  26. <link rel="prev" title="cf.Field.long_name" href="cf.Field.long_name.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.Field.month_lengths.html" title="cf.Field.month_lengths"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.Field.long_name.html" title="cf.Field.long_name"
  40. accesskey="P">previous</a> |</li>
  41. <li><a target="_blank" href="../../archive.html">Archive</a> &laquo;</li>
  42. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.2.3</a> &raquo;</li>
  43. <!--
  44. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  45. <li><select onchange="location = this.options[this.selectedIndex].value;">
  46. <option value="../../1.0/index.html">1.0
  47. <option value="../../0.9.9/index.html">0.9.9
  48. <option value="../../0.9.8.3/index.html">0.9.8.3
  49. <option value="../../archive.html">Archive
  50. </select>
  51. </li>
  52. -->
  53. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &raquo;</li>
  54. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &raquo;</li>
  55. <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>
  56. <li class="nav-item nav-item-3"><a href="../classes/cf.Field.html" accesskey="U">cf.Field</a> &raquo;</li>
  57. </ul>
  58. </div>
  59. <div class="document">
  60. <div class="documentwrapper">
  61. <div class="bodywrapper">
  62. <div class="body" role="main">
  63. <div class="section" id="cf-field-missing-value">
  64. <h1>cf.Field.missing_value<a class="headerlink" href="#cf-field-missing-value" title="Permalink to this headline">Âś</a></h1>
  65. <dl class="attribute">
  66. <dt id="cf.Field.missing_value">
  67. <code class="descclassname">Field.</code><code class="descname">missing_value</code><a class="headerlink" href="#cf.Field.missing_value" title="Permalink to this definition">Âś</a></dt>
  68. <dd><p>The missing_value CF property.</p>
  69. <p>Note that this attribute is used primarily for writing data to disk
  70. and is independent of the missing data mask. It may, however, be used
  71. when unmasking data array elements.</p>
  72. <p>The recommended way of retrieving the missing data value is with the
  73. <a class="reference internal" href="cf.Field.fill_value.html#cf.Field.fill_value" title="cf.Field.fill_value"><code class="xref py py-obj docutils literal"><span class="pre">fill_value</span></code></a> method.</p>
  74. <div class="admonition seealso">
  75. <p class="first admonition-title">See also</p>
  76. <p class="last"><a class="reference internal" href="cf.Field._FillValue.html#cf.Field._FillValue" title="cf.Field._FillValue"><code class="xref py py-obj docutils literal"><span class="pre">_FillValue</span></code></a>, <a class="reference internal" href="cf.Field.fill_value.html#cf.Field.fill_value" title="cf.Field.fill_value"><code class="xref py py-obj docutils literal"><span class="pre">fill_value</span></code></a></p>
  77. </div>
  78. <table class="docutils field-list" frame="void" rules="none">
  79. <col class="field-name" />
  80. <col class="field-body" />
  81. <tbody valign="top">
  82. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <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">missing_value</span> <span class="o">=</span> <span class="mf">1.0e30</span>
  87. <span class="gp">&gt;&gt;&gt; </span><span class="n">f</span><span class="o">.</span><span class="n">missing_value</span>
  88. <span class="go">1e+30</span>
  89. <span class="gp">&gt;&gt;&gt; </span><span class="k">del</span> <span class="n">f</span><span class="o">.</span><span class="n">missing_value</span>
  90. </pre></div>
  91. </div>
  92. <p>Mask the data array where it equals a missing data value:</p>
  93. <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">setitem</span><span class="p">(</span><span class="n">cf</span><span class="o">.</span><span class="n">masked</span><span class="p">,</span> <span class="n">condition</span><span class="o">=</span><span class="n">f</span><span class="o">.</span><span class="n">fill_value</span><span class="p">())</span> <span class="n">DCH</span>
  94. </pre></div>
  95. </div>
  96. </dd></dl>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  102. <div class="sphinxsidebarwrapper">
  103. <h4>Previous topic</h4>
  104. <p class="topless"><a href="cf.Field.long_name.html"
  105. title="previous chapter">cf.Field.long_name</a></p>
  106. <h4>Next topic</h4>
  107. <p class="topless"><a href="cf.Field.month_lengths.html"
  108. title="next chapter">cf.Field.month_lengths</a></p>
  109. <div role="note" aria-label="source link">
  110. <h3>This Page</h3>
  111. <ul class="this-page-menu">
  112. <li><a href="../_sources/generated/cf.Field.missing_value.txt"
  113. rel="nofollow">Show Source</a></li>
  114. </ul>
  115. </div>
  116. <div id="searchbox" style="display: none" role="search">
  117. <h3>Quick search</h3>
  118. <form class="search" action="../search.html" method="get">
  119. <input type="text" name="q" />
  120. <input type="submit" value="Go" />
  121. <input type="hidden" name="check_keywords" value="yes" />
  122. <input type="hidden" name="area" value="default" />
  123. </form>
  124. </div>
  125. <script type="text/javascript">$('#searchbox').show(0);</script>
  126. </div>
  127. </div>
  128. <div class="clearer"></div>
  129. </div>
  130. <div class="related" role="navigation" aria-label="related navigation">
  131. <h3>Navigation</h3>
  132. <ul>
  133. <li class="right" style="margin-right: 10px">
  134. <a href="../genindex.html" title="General Index"
  135. >index</a></li>
  136. <li class="right" >
  137. <a href="cf.Field.month_lengths.html" title="cf.Field.month_lengths"
  138. >next</a> |</li>
  139. <li class="right" >
  140. <a href="cf.Field.long_name.html" title="cf.Field.long_name"
  141. >previous</a> |</li>
  142. <li><a target="_blank" href="../../archive.html">Archive</a> &laquo;</li>
  143. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.2.3</a> &raquo;</li>
  144. <!--
  145. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  146. <li><select onchange="location = this.options[this.selectedIndex].value;">
  147. <option value="../../1.0/index.html">1.0
  148. <option value="../../0.9.9/index.html">0.9.9
  149. <option value="../../0.9.8.3/index.html">0.9.8.3
  150. <option value="../../archive.html">Archive
  151. </select>
  152. </li>
  153. -->
  154. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &raquo;</li>
  155. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &raquo;</li>
  156. <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>
  157. <li class="nav-item nav-item-3"><a href="../classes/cf.Field.html" >cf.Field</a> &raquo;</li>
  158. </ul>
  159. </div>
  160. <div class="footer" role="contentinfo">
  161. &copy; Copyright 2016, David Hassell.
  162. Last updated on Aug 23, 2016.
  163. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.1.
  164. </div>
  165. </body>
  166. </html>