<!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>astropy.wcs History — 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="World Coordinate System (astropy.wcs)" href="index.html" /> <link rel="next" title="UnitConverter" href="../_generated/astropy.wcs.UnitConverter.html" /> <link rel="prev" title="Relax constants" href="relax.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="../_generated/astropy.wcs.UnitConverter.html" title="UnitConverter"> next » </a> </li> <li class="right"> <a href="relax.html" title="Relax constants"> « previous </a> | </li> <li> <a href="../index.html">Astropy v0.2.4</a> » </li> <li><a href="index.html" accesskey="U">World Coordinate System (<tt class="docutils literal"><span class="pre">astropy.wcs</span></tt>)</a> »</li> <li>astropy.wcs History</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="astropy-wcs-history"> <h1>astropy.wcs History<a class="headerlink" href="#astropy-wcs-history" title="Permalink to this headline">¶</a></h1> <p><a class="reference internal" href="index.html#module-astropy.wcs" title="astropy.wcs"><tt class="xref py py-obj docutils literal"><span class="pre">astropy.wcs</span></tt></a> began life as <tt class="xref py py-obj docutils literal"><span class="pre">pywcs</span></tt>. Earlier version numbers refer to that package.</p> <div class="section" id="pywcs-version-1-11"> <h2>pywcs Version 1.11<a class="headerlink" href="#pywcs-version-1-11" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Updated to wcslib version 4.8, which gives much more detailed error messages.</li> <li>Added functions get_pc() and get_cdelt(). These provide a way to always get the canonical representation of the linear transformation matrix, whether the header specified it in PC, CD or CROTA form.</li> <li>Long-running process will now release the Python GIL to better support Python multithreading.</li> <li>The dimensions of the <a class="reference internal" href="../_generated/astropy.wcs.Wcsprm.html#astropy.wcs.Wcsprm.cd" title="astropy.wcs.Wcsprm.cd"><tt class="xref py py-obj docutils literal"><span class="pre">cd</span></tt></a> and <a class="reference internal" href="../_generated/astropy.wcs.Wcsprm.html#astropy.wcs.Wcsprm.pc" title="astropy.wcs.Wcsprm.pc"><tt class="xref py py-obj docutils literal"><span class="pre">pc</span></tt></a> matrices were always returned as 2x2. They now are sized according to naxis.</li> <li>Supports Python 3.x</li> <li>Builds on Microsoft Windows without severely patching wcslib.</li> <li>Lots of new unit tests</li> <li><tt class="xref py py-obj docutils literal"><span class="pre">pywcs</span></tt> will now run without <tt class="xref py py-obj docutils literal"><span class="pre">pyfits</span></tt>, though the SIP and distortion lookup table functionality is unavailable.</li> <li>Setting <a class="reference internal" href="../_generated/astropy.wcs.Wcsprm.html#astropy.wcs.Wcsprm.cunit" title="astropy.wcs.Wcsprm.cunit"><tt class="xref py py-obj docutils literal"><span class="pre">cunit</span></tt></a> will now verify that the values are valid unit strings.</li> </ul> </div> <div class="section" id="pywcs-version-1-10"> <h2>pywcs Version 1.10<a class="headerlink" href="#pywcs-version-1-10" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Adds a <tt class="xref py py-obj docutils literal"><span class="pre">UnitConversion</span></tt> class, which gives access to wcslib’s unit conversion functionality. Given two convertible unit strings, pywcs can convert arrays of values from one to the other.</li> <li>Now uses wcslib 4.7</li> <li>Changes to some wcs values would not always calculate secondary values.</li> </ul> </div> <div class="section" id="pywcs-version-1-9"> <h2>pywcs Version 1.9<a class="headerlink" href="#pywcs-version-1-9" title="Permalink to this headline">¶</a></h2> <ul> <li><p class="first">Support binary image arrays and pixel list format WCS by presenting a way to call wcslib’s <tt class="xref py py-obj docutils literal"><span class="pre">wcsbth()</span></tt></p> </li> <li><p class="first">Updated underlying wcslib to version 4.5, which fixes the following:</p> <blockquote> <div><ul class="simple"> <li>Fixed the interpretation of VELREF when translating AIPS-convention spectral types. Such translation is now handled by a new special- purpose function, spcaips(). The wcsprm struct has been augmented with an entry for velref which is filled by wcspih() and wcsbth(). Previously, selection by VELREF of the radio or optical velocity convention for type VELO was not properly handled.</li> </ul> </div></blockquote> </li> </ul> <div class="section" id="bugs"> <h3>Bugs<a class="headerlink" href="#bugs" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>The <a class="reference internal" href="../_generated/astropy.wcs.Wcsprm.html#astropy.wcs.Wcsprm.pc" title="astropy.wcs.Wcsprm.pc"><tt class="xref py py-obj docutils literal"><span class="pre">pc</span></tt></a> member is now available with a default raw <a class="reference internal" href="../_generated/astropy.wcs.Wcsprm.html#astropy.wcs.Wcsprm" title="astropy.wcs.Wcsprm"><tt class="xref py py-obj docutils literal"><span class="pre">Wcsprm</span></tt></a> object.</li> <li>Make properties that return arrays read-only, since modifying a (mutable) array could result in secondary values not being recomputed based on those changes.</li> <li><tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt> properties can now be set using <tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt> values</li> </ul> </div> </div> <div class="section" id="pywcs-version-1-3a1"> <h2>pywcs Version 1.3a1<a class="headerlink" href="#pywcs-version-1-3a1" title="Permalink to this headline">¶</a></h2> <p>Earlier versions of pywcs had two versions of every conversion method:</p> <div class="highlight-python"><pre>X(...) -- treats the origin of pixel coordinates at (0, 0) X_fits(...) -- treats the origin of pixel coordinates at (1, 1)</pre> </div> <p>From version 1.3 onwards, there is only one method for each conversion, with an ‘origin’ argument:</p> <blockquote> <div><ul class="simple"> <li>0: places the origin at (0, 0), which is the C/Numpy convention.</li> <li>1: places the origin at (1, 1), which is the Fortran/FITS convention.</li> </ul> </div></blockquote> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"><h3>Page Contents</h3> <ul> <li><a class="reference internal" href="#">astropy.wcs History</a><ul> <li><a class="reference internal" href="#pywcs-version-1-11">pywcs Version 1.11</a></li> <li><a class="reference internal" href="#pywcs-version-1-10">pywcs Version 1.10</a></li> <li><a class="reference internal" href="#pywcs-version-1-9">pywcs Version 1.9</a><ul> <li><a class="reference internal" href="#bugs">Bugs</a></li> </ul> </li> <li><a class="reference internal" href="#pywcs-version-1-3a1">pywcs Version 1.3a1</a></li> </ul> </li> </ul> </div> </div> <div class="clearer"></div> </div> <footer class="footer"> <p class="pull-right"> <a href="http://github.com/astropy/astropy/tree/v0.2.4/docs/wcs/history.rst">Edit This Page on Github</a> <a href="../_sources/wcs/history.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>