/docs/1.1.8/generated/cf.FieldList.cos.html
HTML | 230 lines | 186 code | 14 blank | 30 comment | 0 complexity | 47dd020803e545c7c57d2b74c6b24b89 MD5 | raw file
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
- <title>cf.FieldList.cos — Documentation</title>
-
- <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
- <script type="text/javascript">
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../',
- VERSION: '1.1.8',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <script type="text/javascript" src="../_static/jquery.js"></script>
- <script type="text/javascript" src="../_static/underscore.js"></script>
- <script type="text/javascript" src="../_static/doctools.js"></script>
- <script type="text/javascript" src="../_static/copybutton.js"></script>
- <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
- <link rel="top" title="Documentation" href="../index.html" />
- <link rel="up" title="cf.FieldList" href="../classes/cf.FieldList.html" />
- <link rel="next" title="cf.FieldList.sin" href="cf.FieldList.sin.html" />
- <link rel="prev" title="cf.FieldList.subspace" href="cf.FieldList.subspace.html" />
- </head>
- <body role="document">
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="cf.FieldList.sin.html" title="cf.FieldList.sin"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="cf.FieldList.subspace.html" title="cf.FieldList.subspace"
- accesskey="P">previous</a> |</li>
- <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1.8</a> »</li>
- <!--
- <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> »</li>
- <li><select onchange="location = this.options[this.selectedIndex].value;">
- <option value="../../1.0/index.html">1.0
- <option value="../../0.9.9/index.html">0.9.9
- <option value="../../0.9.8.3/index.html">0.9.8.3
- <option value="../../archive.html">Archive
- </select>
- </li>
- -->
-
- <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> »</li>
- <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> »</li>
- <li class="nav-item nav-item-3"><a href="../classes/cf.FieldList.html" accesskey="U">cf.FieldList</a> »</li>
- </ul>
- </div>
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body" role="main">
-
- <div class="section" id="cf-fieldlist-cos">
- <h1>cf.FieldList.cos<a class="headerlink" href="#cf-fieldlist-cos" title="Permalink to this headline">Âś</a></h1>
- <dl class="method">
- <dt id="cf.FieldList.cos">
- <code class="descclassname">FieldList.</code><code class="descname">cos</code><span class="sig-paren">(</span><em>i=False</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-4224"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.FieldList.cos" title="Permalink to this definition">Âś</a></dt>
- <dd><p>For each field, take the trigonometric cosine of the data array.</p>
- <p>Units are accounted for in the calculation, so that the the cosine of
- 90 degrees_east is 0.0, as is the cosine of 1.57079632 radians. If the
- units are not equivalent to radians (such as Kelvin) then they are
- treated as if they were radians.</p>
- <p>The output units are ‘1’ (nondimensionsal).</p>
- <div class="admonition seealso">
- <p class="first admonition-title">See also</p>
- <p class="last"><a class="reference internal" href="cf.FieldList.sin.html#cf.FieldList.sin" title="cf.FieldList.sin"><code class="xref py py-obj docutils literal"><span class="pre">sin</span></code></a>, <a class="reference internal" href="cf.FieldList.tan.html#cf.FieldList.tan" title="cf.FieldList.tan"><code class="xref py py-obj docutils literal"><span class="pre">tan</span></code></a></p>
- </div>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Examples 1:</th><td class="field-body"></td>
- </tr>
- </tbody>
- </table>
- <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">g</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">cos</span><span class="p">()</span>
- </pre></div>
- </div>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first docutils">
- <dt>i <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
- <dd><p class="first last">If True then update the field list in place. By default a new
- field list is created. In either case, a field list is
- returned.</p>
- </dd>
- </dl>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
- <dt>out <span class="classifier-delimiter">:</span> <span class="classifier">cf.FieldList </span></dt>
- <dd><p class="first last">For each field, the field list with the cosine of data array values.</p>
- </dd>
- </dl>
- </td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Examples 2:</th><td class="field-body"></td>
- </tr>
- </tbody>
- </table>
- <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">f</span><span class="o">.</span><span class="n">Units</span>
- <span class="go"><CF Units: degrees_east></span>
- <span class="gp">>>> </span><span class="k">print</span> <span class="n">f</span><span class="o">.</span><span class="n">array</span>
- <span class="go">[[-90 0 90 --]]</span>
- <span class="gp">>>> </span><span class="n">f</span><span class="o">.</span><span class="n">cos</span><span class="p">()</span>
- <span class="gp">>>> </span><span class="n">f</span><span class="o">.</span><span class="n">Units</span>
- <span class="go"><CF Units: 1></span>
- <span class="gp">>>> </span><span class="k">print</span> <span class="n">f</span><span class="o">.</span><span class="n">array</span>
- <span class="go">[[0.0 1.0 0.0 --]]</span>
- </pre></div>
- </div>
- <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">f</span><span class="o">.</span><span class="n">Units</span>
- <span class="go"><CF Units: m s-1></span>
- <span class="gp">>>> </span><span class="k">print</span> <span class="n">f</span><span class="o">.</span><span class="n">array</span>
- <span class="go">[[1 2 3 --]]</span>
- <span class="gp">>>> </span><span class="n">f</span><span class="o">.</span><span class="n">cos</span><span class="p">()</span>
- <span class="gp">>>> </span><span class="n">f</span><span class="o">.</span><span class="n">Units</span>
- <span class="go"><CF Units: 1></span>
- <span class="gp">>>> </span><span class="k">print</span> <span class="n">f</span><span class="o">.</span><span class="n">array</span>
- <span class="go">[[0.540302305868 -0.416146836547 -0.9899924966 --]]</span>
- </pre></div>
- </div>
- </dd></dl>
- </div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
- <div class="sphinxsidebarwrapper">
- <h4>Previous topic</h4>
- <p class="topless"><a href="cf.FieldList.subspace.html"
- title="previous chapter">cf.FieldList.subspace</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="cf.FieldList.sin.html"
- title="next chapter">cf.FieldList.sin</a></p>
- <div role="note" aria-label="source link">
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="../_sources/generated/cf.FieldList.cos.txt"
- rel="nofollow">Show Source</a></li>
- </ul>
- </div>
- <div id="searchbox" style="display: none" role="search">
- <h3>Quick search</h3>
- <form class="search" action="../search.html" method="get">
- <input type="text" name="q" />
- <input type="submit" value="Go" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- <p class="searchtip" style="font-size: 90%">
- Enter search terms or a module, class or function name.
- </p>
- </div>
- <script type="text/javascript">$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="cf.FieldList.sin.html" title="cf.FieldList.sin"
- >next</a> |</li>
- <li class="right" >
- <a href="cf.FieldList.subspace.html" title="cf.FieldList.subspace"
- >previous</a> |</li>
- <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1.8</a> »</li>
- <!--
- <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> »</li>
- <li><select onchange="location = this.options[this.selectedIndex].value;">
- <option value="../../1.0/index.html">1.0
- <option value="../../0.9.9/index.html">0.9.9
- <option value="../../0.9.8.3/index.html">0.9.8.3
- <option value="../../archive.html">Archive
- </select>
- </li>
- -->
-
- <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> »</li>
- <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> »</li>
- <li class="nav-item nav-item-3"><a href="../classes/cf.FieldList.html" >cf.FieldList</a> »</li>
- </ul>
- </div>
- <div class="footer" role="contentinfo">
- © Copyright 2016, David Hassell.
- Last updated on May 18, 2016.
- Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.5.
- </div>
- </body>
- </html>