/docs/1.0/generated/cf.Data.transpose.html
HTML | 197 lines | 173 code | 24 blank | 0 comment | 0 complexity | b74e7ff37a88eb6e8142948f799f3763 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.Data.transpose — Documentation</title>
-
- <link rel="stylesheet" href="../_static/default.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.0',
- 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="http://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.Data" href="../classes/cf.Data.html" />
- <link rel="next" title="cf.Data.trunc" href="cf.Data.trunc.html" />
- <link rel="prev" title="cf.Data.to_memory" href="cf.Data.to_memory.html" />
- </head>
- <body>
- <div class="related">
- <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.Data.trunc.html" title="cf.Data.trunc"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="cf.Data.to_memory.html" title="cf.Data.to_memory"
- accesskey="P">previous</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"selected>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><a href="../index.html">Documentation</a> »</li>
- <li><a href="../reference.html" >Reference manual</a> »</li>
- <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> »</li>
- <li><a href="../classes/cf.Data.html" accesskey="U">cf.Data</a> »</li>
- </ul>
- </div>
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body">
-
- <div class="section" id="cf-data-transpose">
- <h1>cf.Data.transpose<a class="headerlink" href="#cf-data-transpose" title="Permalink to this headline">Âś</a></h1>
- <dl class="method">
- <dt id="cf.Data.transpose">
- <tt class="descclassname">Data.</tt><tt class="descname">transpose</tt><big>(</big><em>axes=None</em>, <em>i=False</em><big>)</big><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.0/cf/data/data.py#cl-8772"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.Data.transpose" title="Permalink to this definition">Âś</a></dt>
- <dd><p>Permute the axes of the data array.</p>
- <div class="admonition seealso">
- <p class="first admonition-title">See also</p>
- <p class="last"><a class="reference internal" href="cf.Data.expand_dims.html#cf.Data.expand_dims" title="cf.Data.expand_dims"><tt class="xref py py-obj docutils literal"><span class="pre">expand_dims</span></tt></a>, <a class="reference internal" href="cf.Data.flip.html#cf.Data.flip" title="cf.Data.flip"><tt class="xref py py-obj docutils literal"><span class="pre">flip</span></tt></a>, <a class="reference internal" href="cf.Data.squeeze.html#cf.Data.squeeze" title="cf.Data.squeeze"><tt class="xref py py-obj docutils literal"><span class="pre">squeeze</span></tt></a>, <a class="reference internal" href="cf.Data.swapaxes.html#cf.Data.swapaxes" title="cf.Data.swapaxes"><tt class="xref py py-obj docutils literal"><span class="pre">swapaxes</span></tt></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">Parameters:</th><td class="field-body"><dl class="first docutils">
- <dt>axes <span class="classifier-delimiter">:</span> <span class="classifier">(sequence of) int</span></dt>
- <dd><p class="first last">The new axis order of the data array. By default the order is
- reversed. Each axis of the new order is identified by its
- original integer position.</p>
- </dd>
- <dt>i <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
- <dd><p class="first last">If True then update the data array in place. By default a new
- data array is created.</p>
- </dd>
- </dl>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">out : cf.Data</p>
- </td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
- </tr>
- </tbody>
- </table>
- <div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">shape</span>
- <span class="go">(19, 73, 96)</span>
- <span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">transpose</span><span class="p">()</span>
- <span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">shape</span>
- <span class="go">(96, 73, 19)</span>
- <span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">transpose</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">2</span><span class="p">])</span>
- <span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">shape</span>
- <span class="go">(73, 96, 19)</span>
- <span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">transpose</span><span class="p">((</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
- <span class="gp">>>> </span><span class="n">d</span><span class="o">.</span><span class="n">shape</span>
- <span class="go">(19, 73, 96)</span>
- </pre></div>
- </div>
- </dd></dl>
- </div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar">
- <div class="sphinxsidebarwrapper">
- <h4>Previous topic</h4>
- <p class="topless"><a href="cf.Data.to_memory.html"
- title="previous chapter">cf.Data.to_memory</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="cf.Data.trunc.html"
- title="next chapter">cf.Data.trunc</a></p>
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="../_sources/generated/cf.Data.transpose.txt"
- rel="nofollow">Show Source</a></li>
- </ul>
- <div id="searchbox" style="display: none">
- <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">
- <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.Data.trunc.html" title="cf.Data.trunc"
- >next</a> |</li>
- <li class="right" >
- <a href="cf.Data.to_memory.html" title="cf.Data.to_memory"
- >previous</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"selected>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><a href="../index.html">Documentation</a> »</li>
- <li><a href="../reference.html" >Reference manual</a> »</li>
- <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> »</li>
- <li><a href="../classes/cf.Data.html" >cf.Data</a> »</li>
- </ul>
- </div>
- <div class="footer">
- © Copyright 2015, David Hassell.
- Last updated on May 27, 2015.
- Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
- </div>
- </body>
- </html>