<!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>Ipac — 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="Latex" href="astropy.io.ascii.latex.Latex.html" /> <link rel="prev" title="IntType" href="astropy.io.ascii.core.IntType.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.latex.Latex.html" title="Latex"> next » </a> </li> <li class="right"> <a href="astropy.io.ascii.core.IntType.html" title="IntType"> « previous </a> | </li> <li> <a href="../index.html">Astropy v0.2.4</a> » </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> »</li> <li>Ipac</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="ipac"> <h1>Ipac<a class="headerlink" href="#ipac" title="Permalink to this headline">¶</a></h1> <dl class="class"> <dt id="astropy.io.ascii.ipac.Ipac"> <em class="property">class </em><tt class="descclassname">astropy.io.ascii.ipac.</tt><tt class="descname">Ipac</tt><big>(</big><em>definition='ignore'</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/io/ascii/ipac.py#L37" title="Push the Edit button on the next page"><span class="edit-on-github viewcode-link"> [edit on github]</span></a><a class="reference internal" href="../_modules/astropy/io/ascii/ipac.html#Ipac"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.io.ascii.ipac.Ipac" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="astropy.io.ascii.core.BaseReader.html#astropy.io.ascii.core.BaseReader" title="astropy.io.ascii.core.BaseReader"><tt class="xref py py-class docutils literal"><span class="pre">astropy.io.ascii.core.BaseReader</span></tt></a></p> <p>Read an IPAC format table. See <a class="reference external" href="http://irsa.ipac.caltech.edu/applications/DDGEN/Doc/ipac_tbl.html">http://irsa.ipac.caltech.edu/applications/DDGEN/Doc/ipac_tbl.html</a>:</p> <div class="highlight-python"><pre>\name=value \ Comment | column1 | column2 | column3 | column4 | column5 | | double | double | int | double | char | | unit | unit | unit | unit | unit | | null | null | null | null | null | 2.0978 29.09056 73765 2.06000 B8IVpMnHg</pre> </div> <p>Or:</p> <div class="highlight-python"><pre>|-----ra---|----dec---|---sao---|------v---|----sptype--------| 2.09708 29.09056 73765 2.06000 B8IVpMnHg</pre> </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"><p class="first"><strong>definition</strong> : str, optional</p> <blockquote class="last"> <div><p>Specify the convention for characters in the data table that occur directly below the pipe (<tt class="xref py py-obj docutils literal"><span class="pre">|</span></tt>) symbol in the header column definition:</p> <blockquote> <div><ul class="simple"> <li>‘ignore’ - Any character beneath a pipe symbol is ignored (default)</li> <li>‘right’ - Character is associated with the column to the right</li> <li>‘left’ - Character is associated with the column to the left</li> </ul> </div></blockquote> </div></blockquote> </td> </tr> </tbody> </table> <p class="rubric">Notes</p> <p>Caveats:</p> <ul class="simple"> <li>Data type, Units, and Null value specifications are ignored.</li> <li>Keywords are ignored.</li> <li>The IPAC spec requires the first two header lines but this reader only requires the initial column name definition line</li> </ul> <p>Overcoming these limitations would not be difficult, code contributions welcome from motivated users.</p> <p class="rubric">Methods Summary</p> <table border="1" class="longtable docutils"> <colgroup> <col width="10%" /> <col width="90%" /> </colgroup> <tbody valign="top"> <tr class="row-odd"><td><a class="reference internal" href="#astropy.io.ascii.ipac.Ipac.write" title="astropy.io.ascii.ipac.Ipac.write"><tt class="xref py py-obj docutils literal"><span class="pre">write</span></tt></a>([table])</td> <td>Not available for the Ipac class (raises NotImplementedError)</td> </tr> </tbody> </table> <p class="rubric">Methods Documentation</p> <dl class="method"> <dt id="astropy.io.ascii.ipac.Ipac.write"> <tt class="descname">write</tt><big>(</big><em>table=None</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/io/ascii/ipac.py#L82" title="Push the Edit button on the next page"><span class="edit-on-github viewcode-link"> [edit on github]</span></a><a class="reference internal" href="../_modules/astropy/io/ascii/ipac.html#Ipac.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.io.ascii.ipac.Ipac.write" title="Permalink to this definition">¶</a></dt> <dd><p>Not available for the Ipac class (raises NotImplementedError)</p> </dd></dl> </dd></dl> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"><h3>Page Contents</h3> <ul> <li><a class="reference internal" href="#">Ipac</a></li> </ul> </div> </div> <div class="clearer"></div> </div> <footer class="footer"> <p class="pull-right"> <a href="../_sources/_generated/astropy.io.ascii.ipac.Ipac.txt" rel="nofollow">Page Source</a> <a href="#">Back to Top</a></p> <p> © Copyright 2011-2013, The Astropy Developers.<br/> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. Last built 22 Oct 2013. <br/> </p> </footer> </body> </html>