The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

 # given mean geocentric coordinates $x0, $y0, $z0,
 # transform them to apparent coordinates $x1, $y1, $z1
 my $func = nutequ( $t );
 ($x1, $y1, $z1) = $func->($x0, $y0, $z0); # true coordinates

DESCRIPTION

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

SUBROUTINES

deltas( $t )

Calculates the effects of nutation on the ecliptic longitude and on the obliquity of the ecliptic with accuracy of about 1 arcsecond. Given time in Julian centuries since J200, return delta-psi and delta-eps.

Arguments

  • $t — time in Julian centuries since J2000: (JD-2451545.0)/36525.0

Returns

($delta_psi, $delta_eps), in arc-degrees.

mean2true( $t )

Returns function for transforming of mean to true coordinates.

Arguments

  • $t — time in Julian centuries since J2000: (JD-2451545.0)/36525.0

Returns

Function which takes mean ecliptic geocentric coordinates of the planet X, Y, Z of a planet and returns true coordinates, i.e. corrected for "nutation in ecliptic and obliquity".

obliquity( $t )

Given time in Julian centuries since J200, return mean obliquity of the ecliptic, in arc-degrees.

AUTHOR

Sergey Krushinsky, <krushi at cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2019 by Sergey Krushinsky

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