Astro:...::CoCo(3pm)
π« Astro:...::CoCo(3pm) π«
okay so this is Astro:...::CoCo, straight out of the User Contributed Perl Documentation section, and it's basically the coordinate-conversion bestie of the Astro::Montenbruck world β¨
πΈ NAME πΈ
Astro::Montenbruck::CoCo β Coordinates conversions. that's it, that's the whole vibe. she converts coordinates. periodt π
π VERSION π
Version 0.01 β baby's first version, and she's already iconic π«Ά
π¦ DESCRIPTION π¦
Celestial sphera related calculations used by Astro::Montenbruck modules.
like, literally all the sky-sphere math that the rest of the Montenbruck family leans on? she's the one doing it. main character energy fr fr π
β EXPORT β
these two get exported for you automatically, no extra asking required:
equ2ecl($alpha, $delta, $epsilon)ecl2equ($lambda, $beta, $epsilon)
slay. go use them π
π₯ FUNCTIONS π₯
π equ2ecl($alpha, $delta, $epsilon)
Conversion of equatorial into ecliptic coordinates. one door in, the other door out πͺβ¨
Arguments
$alphaβ right ascension$deltaβ declination$epsilonβ ecliptic obliquity
Returns
Ecliptic coordinates:
$lambda$beta
All arguments and return values are in degrees. every single one. degrees only, no cap π
π ecl2equ($lambda, $beta, $epsilon)
Conversion of ecliptic into equatorial coordinates. the reverse trip, same energy π¦
Arguments
$lambdaβ celestial longitude$betaβ celestial latitude$epsilonβ ecliptic obliquity
Returns
Equatorial coordinates:
$alphaβ right ascension$deltaβ declination
All arguments and return values are in degrees. again. degrees. always degrees π
π equ2hor($h, $delta, $phi)
Conversion of equatorial into horizontal coordinates. we're going from sky-coords to "where do i point my eyeballs" coords π
Arguments
$hβ the local hour angle, in degrees, measured westwards from the South.h = Local Sidereal Time - Right Ascension$deltaβ declination, in arc-degrees$phiβ the observer's latitude, in arc-degrees, positive in the nothern hemisphere, negative in the southern hemisphere.
yeah bestie, "nothern" β that's how it's spelled in the source, we're not touching it, it's canon now π
Returns
Horizontal coordinates:
- azimuth, in degrees, measured westward from the South
- altitude, in degrees, positive above the horizon
northern observers, southern observers, everybody gets a horizon π
π§ hor2equ($az, $alt, $phi)
Convert horizontal to equatorial coordinates. the comeback arc π«
Arguments
$azβ azimuth, in degrees, measured westward from the South$altβ altitude, in degrees, positive above the horizon$phiβ the observer's latitude, in arc-degrees, positive in the nothern hemisphere, negative in the southern hemisphere.
Returns
Horizontal coordinates:
- hour angle, in arc-degrees
- declination, in arc-degrees
lowkey a little goofy β the docs label this return list "Horizontal coordinates" even tho you literally just converted to equatorial, and we're preserving that exactly as written π«Ά the values you get back are the hour angle and the declination, fr fr.
π SUPPORT π
You can find documentation for this module with the perldoc command. iconic behavior, honestly:
perldoc Astro::Montenbruck::CoCo
πΈ AUTHOR πΈ
Sergey Krushinsky, "<krushi at cpan.org>" β thank you for the coordinates, king π
π 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.
and that's the whole page, bestie!! π this beauty shipped as part of perl v5.42.2, dated 2026-02-15, and it's giving "small module, huge responsibility." 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