Astro:...t::Sun(3pm)

πŸ“¦ version 1.26, in alpine 3.24

πŸ’– 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-degrees
  • y β€” geocentric latitude, arc-degrees
  • z β€” distance from Earth, AU

πŸ‘‘ AUTHOR πŸ‘‘

Sergey Krushinsky, "<krushi at cpan.org>" β€” king behaviour, we stan. πŸ’œ


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