Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 82fd441cd3f2a8bc33fc3ed41403eced > files > 1265

python-astropy-0.2.4-4.mga4.x86_64.rpm


<!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>FixedWidthNoHeader &mdash; Astropy v0.2.4</title>
    
    <link rel="stylesheet" href="../_static/bootstrap-astropy.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '0.2.4',
        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/sidebar.js"></script>
    <link rel="shortcut icon" href="../_static/astropy_logo.ico"/>
    <link rel="top" title="Astropy v0.2.4" href="../index.html" />
    <link rel="up" title="ASCII Tables (astropy.io.ascii)" href="../io/ascii/index.html" />
    <link rel="next" title="FixedWidthSplitter" href="astropy.io.ascii.fixedwidth.FixedWidthSplitter.html" />
    <link rel="prev" title="FixedWidthHeader" href="astropy.io.ascii.fixedwidth.FixedWidthHeader.html" /> 
  </head>
  <body>
<div class="topbar">
  <a class="brand" title="Documentation Home" href="../index.html"></a>
  <ul>
    <li><a class="homelink" title="AstroPy Homepage" href="http://www.astropy.org"></a></li>
    <li><a title="General Index" href="../genindex.html">Index</a></li>
    <li><a title="Python Module Index" href="../py-modindex.html">Modules</a></li>
    <li>
      
      
<form action="../search.html" method="get">
  <input type="text" name="q" placeholder="Search" />
  <input type="hidden" name="check_keywords" value="yes" />
  <input type="hidden" name="area" value="default" />
</form>
      
    </li>
  </ul>
</div>

<div class="related">
    <h3>Navigation</h3>
    <ul>
      <li class="right">
	<a href="astropy.io.ascii.fixedwidth.FixedWidthSplitter.html" title="FixedWidthSplitter">
	  next &raquo;
	</a>
      </li>
      <li class="right">
	<a href="astropy.io.ascii.fixedwidth.FixedWidthHeader.html" title="FixedWidthHeader">
	  &laquo; previous
	</a>
	 |
      </li>
      <li>
	<a href="../index.html">Astropy v0.2.4</a>
	 &raquo;
      </li>
      <li><a href="../io/ascii/index.html" accesskey="U">ASCII Tables (<tt class="docutils literal"><span class="pre">astropy.io.ascii</span></tt>)</a> &raquo;</li>
      
      <li>FixedWidthNoHeader</li> 
    </ul>
</div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="fixedwidthnoheader">
<h1>FixedWidthNoHeader<a class="headerlink" href="#fixedwidthnoheader" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="astropy.io.ascii.fixedwidth.FixedWidthNoHeader">
<em class="property">class </em><tt class="descclassname">astropy.io.ascii.fixedwidth.</tt><tt class="descname">FixedWidthNoHeader</tt><big>(</big><em>col_starts=None</em>, <em>col_ends=None</em>, <em>delimiter_pad=' '</em>, <em>bookend=True</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/io/ascii/fixedwidth.py#L316" title="Push the Edit button on the next page"><span class="edit-on-github viewcode-link">&nbsp;[edit on github]</span></a><a class="reference internal" href="../_modules/astropy/io/ascii/fixedwidth.html#FixedWidthNoHeader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.io.ascii.fixedwidth.FixedWidthNoHeader" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="astropy.io.ascii.fixedwidth.FixedWidth.html#astropy.io.ascii.fixedwidth.FixedWidth" title="astropy.io.ascii.fixedwidth.FixedWidth"><tt class="xref py py-class docutils literal"><span class="pre">astropy.io.ascii.fixedwidth.FixedWidth</span></tt></a></p>
<p>Read or write a fixed width table which has no header line.  Column
names are either input (<tt class="docutils literal"><span class="pre">names</span></tt> keyword) or auto-generated.  Column
positions are determined either by input (<tt class="docutils literal"><span class="pre">col_starts</span></tt> and <tt class="docutils literal"><span class="pre">col_stops</span></tt>
keywords) or by splitting the first data line.  In the latter case a
<tt class="docutils literal"><span class="pre">delimiter</span></tt> is required to split the data line.</p>
<p>Examples:</p>
<div class="highlight-python"><pre># Bar delimiter in header and data

|  1.2  | hello there |     3 |
|  2.4  | many words  |     7 |

# Compact table having no delimiter and column positions specified as input

1.2hello there3 
2.4many words 7 </pre>
</div>
<p>This class is just a convenience wrapper around the <tt class="docutils literal"><span class="pre">FixedWidth</span></tt> reader
but with <tt class="docutils literal"><span class="pre">header.start_line</span> <span class="pre">=</span> <span class="pre">None</span></tt> and <tt class="docutils literal"><span class="pre">data.start_line</span> <span class="pre">=</span> <span class="pre">0</span></tt>.</p>
<p>See the <a class="reference internal" href="../io/ascii/fixed_width_gallery.html#fixed-width-gallery"><em>Fixed-width Gallery</em></a> for specific usage examples.</p>
<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"><ul class="first last simple">
<li><strong>col_starts</strong> &#8211; list of start positions for each column (0-based counting)</li>
<li><strong>col_ends</strong> &#8211; list of end positions (inclusive) for each column</li>
<li><strong>delimiter_pad</strong> &#8211; padding around delimiter when writing (default = None)</li>
<li><strong>bookend</strong> &#8211; put the delimiter at start and end of line when writing (default = False)</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper"><h3>Page Contents</h3>
<ul>
<li><a class="reference internal" href="#">FixedWidthNoHeader</a></li>
</ul>


        </div>
      </div>
      <div class="clearer"></div>
    </div>
<footer class="footer">
  <p class="pull-right">
    <a href="../_sources/_generated/astropy.io.ascii.fixedwidth.FixedWidthNoHeader.txt"
       rel="nofollow">Page Source</a> &nbsp;
    <a href="#">Back to Top</a></p>
  <p>
    &copy; Copyright 2011-2013, The Astropy Developers.<br/>
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. &nbsp;
    Last built 22 Oct 2013. <br/>
  </p>
</footer>
  </body>
</html>