Astro:...t::Sun(3pm)
π NAME π
Astro::Montenbruck::Ephemeris::Planet::Sun β bestie, it's the Sun. That's it. That's the whole vibe. βοΈβ¨
π SYNOPSIS π
Okay so here's how you actually use it, no cap:
use Astro::Montenbruck::Ephemeris::Planet::Sun;
Astro::Montenbruck::NutEqu qw/mean2true/;
my $sun = Astro::Montenbruck::Ephemeris::Planet::Sun->new();
my ($l, $b, $r) = $sun->sunpos($t); # true geocentric ecliptical coordinates
my $nut_func = mean2true($t);
# apparent geocentric ecliptical coordinates
my ($lambda, $beta, $delta) = $sun->apparent($t, [$l, $b, $r], $nut_func);
Like, literally just make one and go off. π
π¦ DESCRIPTION π¦
So this is a child class of Astro::Montenbruck::Ephemeris::Planet, and its whole entire job β its main character energy, if you will β is calculating Sun position. That's the assignment and it ate. π₯
π METHODS π
β Astro::Montenbruck::Ephemeris::Planet::Sun->new
Constructor. Yep. That's the whole thing. Builds you a Sun object, iconic behaviour honestly. π«Ά
β $self->sunpos($t)
Gives you the ecliptic coordinates L, B, R (in deg and AU) of the Sun, referred to the mean equinox of date. Very demure, very mindful. β¨
πΈ Arguments
$tβ time in Julian centuries since J2000:(JD-2451545.0)/36525.0
πΈ Returns
Array of geocentric ecliptical coordinates, in this order bestie, don't mix them up:
xβ geocentric longitude, arc-degreesyβ geocentric latitude, arc-degreeszβ distance from Earth, AU
π AUTHOR π
Sergey Krushinsky, "<krushi at cpan.org>" β king behaviour, we stan. π
π§ COPYRIGHT AND LICENSE π§
Copyright (C) 2009-2022 by Sergey Krushinsky
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
fr fr, same terms as Perl itself β go read your Perl license, iykyk π
So yeah, that's the entire page, nothing skipped, we covered it all. πΈ This little beauty is Astro:...t::Sun(3pm) and it lives in the User Contributed Perl Documentation section of your friendly neighbourhood man pages. π
Signing off from perl v5.42.2, dated 2026-02-15 β mwah, slay, bye bestie π
ππ¦
π¦ where this page comes from
- alpine 3.24: perl-astro-montenbruck-doc 1.26-r1 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms