Astro:...:Sunset(3pm)
β¨ NAME β¨
okay so bestie, this is the Astro:...:Sunset(3pm) page for Astro::Montenbruck::RiseSet::Sunset, from the User Contributed Perl Documentation manual β and it's literally all about rise and set. π
πΈ SYNOPSIS πΈ
like, here's the whole vibe in code, no cap:
use Astro::Montenbruck::MathUtils qw/frac/;
use Astro::Montenbruck::RiseSet::Constants qw/:events :altitudes/;
use Astro::Montenbruck::RiseSet::Sunset qw/:riseset_func/;
my $func = riseset_func(
date => [1989, 3, 23],
phi => 48.1,
lambda => -11.6
);
$func->(
get_position => sub {
my $jd = shift;
# return equatorial coordinates of the celestial body for the Julian Day.
},
sin_h0 => sin( deg2rad($H0_PLANET) ),
on_event => sub {
my ($evt, $jd) = @_;
say "$evt: $jd";
},
on_noevent => sub {
my $state = shift;
say $state;
}
);
π VERSION π
Version 0.01 β iconic. β¨
π¦ DESCRIPTION π¦
these are low level routines for calculating rise and set times of celestial bodies. πͺ
π FUNCTIONS π
π riseset_func ( %args ) π
this is the time of rise and set events. β°
π Named Arguments π
get_positionβ a function that, given the Standard Julian Day, returns the equatorial coordinates of the celestial body, in radians.dateβ array of year (astronomical, zero-based), month[1..12]and day,[1..31].phiβ geographic latitude, degrees, positive northward.lambdaβ geographic longitude, degrees, positive westward.get_positionβ a function that, given the Standard Julian Day, returns the equatorial coordinates of the celestial body, in radians. yes bestie, it's listed twice in the original β keeping both, no cap πsin_h0β sine of the standard altitude, i.e. the geometric altitude of the center of the body at the time of apparent rising or setting.on_eventcallback β called when the event time is determined. The arguments are:- event type, one of
$EVT_RISEor$EVT_SET - Universal time of the event
- event type, one of
on_event => sub { my ($evt, $ut) = @_; ... }
on_noeventβ called when the event does not happen at the given date, either because the body never rises, or is circumpolar. The argument is respectively$STATE_NEVER_RISESor$STATE_CIRCUMPOLAR.
on_noevent => sub { my $state = shift; ... }
π AUTHOR π
shoutout to the iconic author line: Sergey Krushinsky, "<krushi at cpan.org>" β periodt. π
π COPYRIGHT AND LICENSE π
Copyright (C) 2010-2022 by Sergey Krushinsky
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π okay that's the whole page, bestie! source/version: Astro:...:Sunset(3pm); footer version: perl v5.42.2; date: 2026-02-15 β bye, love u, mwah! π
π¦ 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