line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Astro::Montenbruck; |
2
|
1
|
|
|
1
|
|
134632
|
use 5.22.0; |
|
1
|
|
|
|
|
3
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.05; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
1; |
9
|
|
|
|
|
|
|
__END__ |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=pod |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=encoding UTF-8 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Montenbruck - Lightweight Ephemeris |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Library of astronomical calculations, based on |
23
|
|
|
|
|
|
|
I<"Astronomy On The Personal Computer"> by I<O.Montenbruck> and I<T.Phleger>, |
24
|
|
|
|
|
|
|
I<Fourth Edition, Springer-Verlag, 2000>. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
There are many astronomical libraries available in the public domain. While |
27
|
|
|
|
|
|
|
giving accurate results, they often suffer from lack of convenient API, |
28
|
|
|
|
|
|
|
documentation and maintainability. Most of the source code is written in C, C++ |
29
|
|
|
|
|
|
|
or Java, and not dynamic languages. So, it is not easy for a layman to customize |
30
|
|
|
|
|
|
|
them for her custom application, be it an online lunar calendar, or tool for |
31
|
|
|
|
|
|
|
amateur sky observations. This library is an attempt to find a middle-ground |
32
|
|
|
|
|
|
|
between precision on the one hand and compact, well organized code on the other. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 Accuracy |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
As authors of the book state, they have tried to obtain an accuracy that is |
37
|
|
|
|
|
|
|
approximately the same as that found in astronomical yearbooks. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
"The errors in the fundamental routines for determining the coordinates |
40
|
|
|
|
|
|
|
of the Sun, the Moon, and the planets amount to about 1â³-3â³." |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
-- Introduction to the 4-th edition, p.2. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 MODULES |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=over |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item * L<Astro::Montenbruck::MathUtils> â Core mathematical routines. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * L<Astro::Montenbruck::Time> â Time-related routines. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * L<Astro::Montenbruck::Ephemeris> â Positions of celestial bodies. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * L<Astro::Montenbruck::CoCo> â Coordinates conversions. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * L<Astro::Montenbruck::Nutation> â Nutation and obliquity of ecliptic. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=back |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Sergey Krushinsky, C<< <krushi at cpan.org> >> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright (C) 2010-2019 by Sergey Krushinsky |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
72
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |