Astro::Montenbruck::Ephemeris::Planet - Base class for a planet.
package Astro::Montenbruck::Ephemeris::Planet::Mercury; use base qw/Astro::Montenbruck::Ephemeris::Planet/; ... sub heliocentric { # implement the method }
Base class for a planet. Designed to be extended. Used internally in Astro::Montenbruck::Ephemeris modules. Subclasses must implement heliocentric method.
Constructor. $id is identifier from @PLANETS array (See "EXPORTED CONSTANTS").
@PLANETS
Geocentric ecliptic coordinates of a planet, referred to the true equinox of date.
$t — time in Julian centuries since J2000: (JD-2451545.0) / 36525.0
(JD-2451545.0) / 36525.0
$lbr — arrayref of heliocentric coordinates of the planet returned by $self->heliocentric($t)
$sun — ecliptic geocentric coordinates of the Sun (hashref with 'l', 'b', 'r' keys), returned by Astro::Montenbruck::Ephemeris::Planet::Sun::sunpos($t)
$nut_func — function for converting geocntric coordinates from mean to true equinox of date, returned by Astro::Montenbruck::NutEqu::mean2true($t)
Array of geocentric ecliptical coordinates.
longitude, arc-degrees
latitude, arc-degrees
distance from Earth, AU
Given time in centuries since epoch 2000.0, calculate heliocentric ecliptical coordinates ($l, $b, $r).
($l, $b, $r)
$l — longitude, arc-degrees
$b — latitude, arc-degrees
$r — distance from Earth, A.U.
$MO — Moon
$MO
$SU — Sun
$SU
$ME — Mercury
$ME
$VE — Venus
$VE
$MA — Mars
$MA
$JU — Jupiter
$JU
$SA — Saturn
$SA
$UR — Uranus
$UR
$NE — Neptune
$NE
$PL — Pluto
$PL
@PLANETS — array containing all the ids listed above
Sergey Krushinsky, <krushi at cpan.org>
<krushi at cpan.org>
Copyright (C) 2009-2021 by Sergey Krushinsky
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Astro::Montenbruck, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::Montenbruck
CPAN shell
perl -MCPAN -e shell install Astro::Montenbruck
For more information on module installation, please visit the detailed CPAN module installation guide.