<!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>RA — 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="Astronomical Coordinate Systems (astropy.coordinates)" href="../coordinates/index.html" /> <link rel="next" title="RangeError" href="astropy.coordinates.errors.RangeError.html" /> <link rel="prev" title="IllegalSecondError" href="astropy.coordinates.errors.IllegalSecondError.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.coordinates.errors.RangeError.html" title="RangeError"> next » </a> </li> <li class="right"> <a href="astropy.coordinates.errors.IllegalSecondError.html" title="IllegalSecondError"> « previous </a> | </li> <li> <a href="../index.html">Astropy v0.2.4</a> » </li> <li><a href="../coordinates/index.html" accesskey="U">Astronomical Coordinate Systems (<tt class="docutils literal"><span class="pre">astropy.coordinates</span></tt>)</a> »</li> <li>RA</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="ra"> <h1>RA<a class="headerlink" href="#ra" title="Permalink to this headline">¶</a></h1> <dl class="class"> <dt id="astropy.coordinates.angles.RA"> <em class="property">class </em><tt class="descclassname">astropy.coordinates.angles.</tt><tt class="descname">RA</tt><big>(</big><em>angle</em>, <em>unit=None</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/coordinates/angles.py#L388" 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/coordinates/angles.html#RA"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.coordinates.angles.RA" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="astropy.coordinates.angles.Angle.html#astropy.coordinates.angles.Angle" title="astropy.coordinates.angles.Angle"><tt class="xref py py-class docutils literal"><span class="pre">astropy.coordinates.angles.Angle</span></tt></a></p> <p>An object that represents a right ascension angle.</p> <p>This object can be created from a numeric value along with a unit. If the value specified is greater than “24”, then a unit of degrees is assumed. Bounds are fixed to [0,360] degrees.</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"><p class="first"><strong>angle</strong> : float, int, str, tuple</p> <blockquote> <div><p>The angle value. If a tuple, will be interpreted as (h, m s) or (d, m, s) depending on <tt class="xref py py-obj docutils literal"><span class="pre">unit</span></tt>. If a string, it will be interpreted following the rules described above.</p> </div></blockquote> <p><strong>unit</strong> : <tt class="xref py py-obj docutils literal"><span class="pre">UnitBase</span></tt>, str</p> <blockquote> <div><p>The unit of the value specified for the angle. This may be any string that <tt class="xref py py-obj docutils literal"><span class="pre">Unit</span></tt> understands, but it is better to give an actual unit object. Must be one of <tt class="xref py py-obj docutils literal"><span class="pre">degree</span></tt>, <tt class="xref py py-obj docutils literal"><span class="pre">radian</span></tt>, or <tt class="xref py py-obj docutils literal"><span class="pre">hour</span></tt>.</p> </div></blockquote> </td> </tr> <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first"><strong>`~astropy.coordinates.errors.UnitsError`</strong> :</p> <blockquote class="last"> <div><p>If a unit is not provided or it is not hour, radian, or degree.</p> </div></blockquote> </td> </tr> </tbody> </table> <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.coordinates.angles.RA.hour_angle" title="astropy.coordinates.angles.RA.hour_angle"><tt class="xref py py-obj docutils literal"><span class="pre">hour_angle</span></tt></a>(lst)</td> <td>Computes the hour angle for this RA given a local sidereal time (LST).</td> </tr> <tr class="row-even"><td><a class="reference internal" href="#astropy.coordinates.angles.RA.lst" title="astropy.coordinates.angles.RA.lst"><tt class="xref py py-obj docutils literal"><span class="pre">lst</span></tt></a>(hour_angle)</td> <td>Calculates the local sidereal time (LST) if this RA is at a particular hour angle.</td> </tr> </tbody> </table> <p class="rubric">Methods Documentation</p> <dl class="method"> <dt id="astropy.coordinates.angles.RA.hour_angle"> <tt class="descname">hour_angle</tt><big>(</big><em>lst</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/coordinates/angles.py#L493" 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/coordinates/angles.html#RA.hour_angle"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.coordinates.angles.RA.hour_angle" title="Permalink to this definition">¶</a></dt> <dd><p>Computes the hour angle for this RA given a local sidereal time (LST).</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"><p class="first"><strong>lst</strong> : <tt class="xref py py-obj docutils literal"><span class="pre">Angle</span></tt>, <tt class="xref py py-obj docutils literal"><span class="pre">Time</span></tt></p> <blockquote> <div><p>A local sidereal time (LST).</p> </div></blockquote> </td> </tr> <tr class="field-even field"><th class="field-name">Returns :</th><td class="field-body"><p class="first"><strong>hour_angle</strong> : <tt class="xref py py-obj docutils literal"><span class="pre">Angle</span></tt></p> <blockquote class="last"> <div><p>The hour angle for this RA at the LST <a class="reference internal" href="#astropy.coordinates.angles.RA.lst" title="astropy.coordinates.angles.RA.lst"><tt class="xref py py-obj docutils literal"><span class="pre">lst</span></tt></a>.</p> </div></blockquote> </td> </tr> </tbody> </table> </dd></dl> <dl class="method"> <dt id="astropy.coordinates.angles.RA.lst"> <tt class="descname">lst</tt><big>(</big><em>hour_angle</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/coordinates/angles.py#L512" 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/coordinates/angles.html#RA.lst"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.coordinates.angles.RA.lst" title="Permalink to this definition">¶</a></dt> <dd><p>Calculates the local sidereal time (LST) if this RA is at a particular hour angle.</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"><p class="first"><strong>hour_angle</strong> : <tt class="xref py py-obj docutils literal"><span class="pre">Angle</span></tt></p> <blockquote> <div><p>An hour angle.</p> </div></blockquote> </td> </tr> <tr class="field-even field"><th class="field-name">Returns :</th><td class="field-body"><p class="first"><strong>lst</strong> : <tt class="xref py py-obj docutils literal"><span class="pre">Angle</span></tt></p> <blockquote class="last"> <div><p>The local siderial time as an angle.</p> </div></blockquote> </td> </tr> </tbody> </table> </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="#">RA</a></li> </ul> </div> </div> <div class="clearer"></div> </div> <footer class="footer"> <p class="pull-right"> <a href="../_sources/_generated/astropy.coordinates.angles.RA.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>