NAME

Astro::Montenbruck::Ephemeris::Planet - Base class for a planet.

SYNOPSIS

package Astro::Montenbruck::Ephemeris::Planet::Mercury;
use base qw/Astro::Montenbruck::Ephemeris::Planet/;
...

sub  heliocentric {
  # implement the method
}

DESCRIPTION

Base class for a planet. Designed to be extended. Used internally in Astro::Montenbruck::Ephemeris modules. Subclasses must implement heliocentric method.

SUBROUTINES/METHODS

$planet = Astro::Montenbruck::Ephemeris::Planet->new( $id )

Constructor. $id is identifier from @PLANETS array (See "EXPORTED CONSTANTS").

$self->apparent($t, $lbr, $sun, $nut_func)

Geocentric ecliptic coordinates of a planet, referred to the true equinox of date.

Arguments

Returns

Array of geocentric ecliptical coordinates.

  • longitude, arc-degrees

  • latitude, arc-degrees

  • distance from Earth, AU

$self->heliocentric($t)

Given time in centuries since epoch 2000.0, calculate heliocentric ecliptical coordinates ($l, $b, $r).

  • $l — longitude, arc-degrees

  • $b — latitude, arc-degrees

  • $r — distance from Earth, A.U.

EXPORTED CONSTANTS

  • $MO — Moon

  • $SU — Sun

  • $ME — Mercury

  • $VE — Venus

  • $MA — Mars

  • $JU — Jupiter

  • $SA — Saturn

  • $UR — Uranus

  • $NE — Neptune

  • $PL — Pluto

  • @PLANETS — array containing all the ids listed above

AUTHOR

Sergey Krushinsky, <krushi at cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2020 by Sergey Krushinsky

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.