Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 99559aae0ebc42ad42fe119ca2937bc6 > files > 193

python-stwcs-1.1.0-3.mga4.noarch.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>Merging Of The Conventions &mdash; SSB TSR 2012-01 documentation</title>
    
    <link rel="stylesheet" href="_static/stsci_sphinx.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     'TSR 2012-01',
        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>
    <link rel="top" title="SSB TSR 2012-01 documentation" href="index.html" />
    <link rel="next" title="Updating the FITS File" href="updating.html" />
    <link rel="prev" title="Detector To Image Correction" href="d2imcorr.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="updating.html" title="Updating the FITS File"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="d2imcorr.html" title="Detector To Image Correction"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">SSB TSR 2012-01 documentation</a> &raquo;</li> 
      </ul>
    </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/stsci_logo.png" alt="Logo"/>
            </a></p>
  <h4>Previous topic</h4>
  <p class="topless"><a href="d2imcorr.html"
                        title="previous chapter">Detector To Image Correction</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="updating.html"
                        title="next chapter">Updating the FITS File</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/merging.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="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="merging-of-the-conventions">
<h1>Merging Of The Conventions<a class="headerlink" href="#merging-of-the-conventions" title="Permalink to this headline">ΒΆ</a></h1>
<p>The full implementation of all these elements ends up merging the SIP, DET2IM and FITS Distortion Paper
conventions to create a new version of the figure from the FITS Distortion Paper which illustrates the conversion
of detector coordinates to world coordinates. This implementation works in the following way:</p>
<blockquote>
<div><ol class="arabic simple">
<li>Apply detector to image correction (DET2IM) to input pixel values</li>
<li>Apply SIP coefficients to DET2IM-corrected pixel values</li>
<li>Apply lookup table correction to DET2IM-corrected pixel values</li>
<li>Add the results of the SIP and lookup table corrections</li>
<li>Apply the WCS transformation in the CD matrix to the summed results to get the intermediate world coordinates</li>
<li>Add the CRVAL keyword values to the transformed positions to get the final world coordinates</li>
</ol>
</div></blockquote>
<p>The computations to perform these steps can be described approximately using:</p>
<div class="math" id="equation-Equation 2">
<p><span class="eqno">(1)</span><span class="math">(x',y') &amp;= DET2IM(x,y)</span></p>
</div><div class="math" id="equation-Equation 3">
<p><span class="eqno">(2)</span><span class="math">\binom{u'}{v'} &amp;= \binom{x' - CRPIX1}{y' - CRPIX2}</span></p>
</div><div class="math" id="equation-Equation 4">
<span id="equation4"></span><p><span class="eqno">(3)</span><span class="math">\left( \begin{array}{ll}
      \alpha \\
      \delta \\
      \end{array} \right) &amp;=
   \left( \begin{array}{ll}
   CRVAL1 \\
   CRVAL2\\
   \end{array} \right) +
   \left( \begin{array}{cc}
   CD11 &amp; CD12 \\
   CD21 &amp; CD22\\
   \end{array} \right)
   \left( \begin{array}{ll}
   u' + f(u',v') + LT_x(x',y') \\
   v' + g(u',v') + LT_y(x',y') \\
   \end{array} \right)</span></p>
</div><p>where f(u&#8217;,v&#8217;) and g(u&#8217;,v&#8217;) represent the polynomial distortion correction specified as</p>
<div class="math" id="equation-Equation 5">
<p><span class="eqno">(4)</span><span class="math">f(u',v') = \sum_{p+q=2}^{AORDER} A_{pq} {u'}^{p} {v'}^{q}
 \\
 g(u',v')  = \sum_{p+q=2}^{BORDER} B_{pq} {u'}^{p} {v'}^{q}</span></p>
</div><p>where</p>
<ul class="simple">
<li>x&#8217;, y&#8217; are the initial coordinates x,y with the 68th column correction applied
through the DET2IM convention</li>
<li>u&#8217;,v&#8217; are the DET2IM-corrected coordinates relative to CRPIX1,CRPIX2</li>
<li><span class="math">LT_{x}, LT_{y}</span> is the residual distortion in the lookup tables
written to the header using the FITS Distortion Paper lookup table convention</li>
<li>A, B are the SIP coefficients specified using the SIP convention</li>
</ul>
<p>These equations do not take into account the deprojection from the tangent plane to
sky coordinates. The complete Detector To Sky Coordinate Transformation is based on
the CTYPE keyword.</p>
<div class="figure" id="figure3">
<img alt="_images/pipeline.png" src="_images/pipeline.png" />
<p class="caption">Coordinate Transformation Pipeline</p>
</div>
</div>


          </div>
        </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="updating.html" title="Updating the FITS File"
             >next</a> |</li>
        <li class="right" >
          <a href="d2imcorr.html" title="Detector To Image Correction"
             >previous</a> |</li>
        <li><a href="index.html">SSB TSR 2012-01 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2012, Nadia Dencheva, Warren Hack.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>