|
Astro::Coord::ECI::Utils - Utility routines for astronomical calculations |
Astro::Coord::ECI::Utils - Utility routines for astronomical calculations
use Astro::Coord::ECI::Utils qw{:all};
my $now = time ();
print "The current Julian day is ", julianday ($now);
This module was written to provide a home for all the constants and utility subroutines used by Astro::Coord::ECI and its descendents. What ended up here was anything that was essentially a subroutine, not a method.
This package exports nothing by default. But all the constants and subroutines documented below are exportable, and the :all tag gets you all of them.
The following constants are exportable:
AU = number of kilometers in an astronomical unit LIGHTYEAR = number of kilometers in a light year PARSEC = number of kilometers in a parsec PERL2000 = January 1 2000, 12 noon universal, in Perl time PI = the circle ratio, computed as atan2 (0, -1) PIOVER2 = half the circle ratio SECSPERDAY = the number of seconds in a day TWOPI = twice the circle ratio
In addition, the following subroutines are exportable:
The algorithm comes from Daniel W. E. Green's article ``Magnitude Corrections for Atmospheric Extinction'', which was published in the July 1992 issue of ``International Comet Quarterly'', and is available online at http://www.cfa.harvard.edu/icq/ICQExtinct.html. The text of this article makes it clear that the actual value of the atmospheric extinction can vary greatly from the typical values given even in the absence of cloud cover.
This method returns the difference between dynamical and universal time at the given universal time. That is,
$dynamical = $time + dynamical_delta ($time)
if $time is universal time.
The algorithm is from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 10, page 78.
The algorithm is from W. S. Smart's ``Text-Book on Spherical Astronomy'', as reported in Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 28, page 185.
Note that, because of the way magnitudes work (a more negative number represents a brighter star) you get back a positive result for an intensity ratio less than 1, and a negative result for an intensity ratio greater than 1.
The computation makes use of information from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 7, page 62.
The computation makes use of information from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 7, page 62.
The algorithm comes from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 22, pages 143ff. Meeus states that it is good to 0.5 seconds of arc.
The algorithm comes from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 22, pages 143ff. Meeus states that it is good to 0.1 seconds of arc.
The algorithm comes from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 22, pages 143ff. The conversion from universal to dynamical time comes from chapter 10, equation 10.2 on page 78.
The algorithm comes from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, Chapter 22, pages 143ff.
The algorithm comes from Jean Meeus' ``Astronomical Algorithms'', 2nd Edition, equation 12.4, page 88.
The author wishes to acknowledge Jean Meeus, whose book ``Astronomical Algorithms'' (second edition) published by Willmann-Bell Inc (http://www.willbell.com/) provided several of the algorithms implemented herein.
Bugs can be reported to the author by mail, or through http://rt.cpan.org/.
Thomas R. Wyant, III (wyant at cpan dot org)
Copyright 2005, 2006 by Thomas R. Wyant, III (wyant at cpan dot org). All rights reserved.
This module is free software; you can use it, redistribute it and/or modify it under the same terms as Perl itself. Please see http://perldoc.perl.org/index-licence.html for the current licenses.
This software is provided without any warranty of any kind, express or implied. The author will not be liable for any damages of any sort relating in any way to this software.
|
Astro::Coord::ECI::Utils - Utility routines for astronomical calculations |