Astro:...:Planet(3pm)
๐ NAME ๐
Astro::Coords::Planet โ coordinates relating to planetary motion ๐ชโจ
ok so real quick, this page is from the User Contributed Perl Documentation for Astro:...:Planet(3pm) โ yes that's the manual name, we're folding it in up here like a little name tag ๐
๐ธ SYNOPSIS ๐ธ
$c = new Astro::Coords::Planet( 'uranus' );
๐ฆ DESCRIPTION ๐ฆ
So Astro::Coords uses this whole class to handle coordinates for planets.. ๐ช yes bestie, planets with the double dot, that's canon, I don't make the rules ๐
โจ METHODS โจ
๐ Constructor
newโ instantiates a shiny new object using the options you hand it ๐
$c = new Astro::Coords::Planet( 'mars' );
Returns undef on error. no cap, that's your failure signal ๐
๐ Class Methods
planetsโ returns a list of supported planet names ๐ช
@planets = Astro::Coords::Planet->planets();
๐ Accessor Methods
planetโ returns the name of the planet. that's it, that's the whole gig ๐nameโ for planets, the name is always just the planet name. iconic behaviour, zero surprises ๐ซถ
๐ GENERAL METHODS ๐
arrayโ returns back an 11 element array, with the first element containing the planet name โจ
This method returns a standardised set of elements across all types of coordinates โ so every coordinate type plays nice together ๐
typeโ returns the generic type associated with the coordinate system. For this class the answer is always"RADEC"โญ
This is used to aid construction of summary tables when using mixed coordinates.
It could be done using isa relationships. (iykyk ๐)
stringifyโ Stringify overload. Simply returns the name of the planet in capitals ๐ PERIODT.summaryโ returns a one line summary of the coordinates. In the future will accept arguments to control output. ๐ฎ
$summary = $c->summary();
diamโ returns the apparent angular planet diameter from the most recent calculation of the apparent RA/Dec ๐
$diam = $c->diam();
Returns the answer as an Astro::Coords::Angle object.
โ ๏ธ bestie listen โ this number is not updated automatically. (so don't change the time and expect to get the correct answer without first asking for a ra/dec calculation) ๐ญ
apparentโ returns the apparent RA and Dec as twoAstro::Coords::Angleobjects for the current coordinates and time ๐ธ
($ra_app, $dec_app) = $self->apparent();
rvโ Radial velocity of the planet relative to the Earth geocentre ๐๐ฅvdefnโ Velocity definition. Always'RADIO'๐ปvframeโ Velocity reference frame. Always'GEO'๐apply_offsetโ Overrided method to warn ifAstro::Coords::apply_offsetis called on this subclass ๐ consider yourself warned, babe.
๐ง NOTES ๐ง
Usually called via Astro::Coords. ๐ซ
๐ฅ REQUIREMENTS ๐ฅ
Astro::PAL is used for all internal astrometric calculations ๐ the whole math situation runs on it, no cap.
๐ AUTHOR ๐
Tim Jenness <t.jenness@cpan.org> ๐
๐ COPYRIGHT ๐
Copyright (C) 2001-2005 Particle Physics and Astronomy Research Council. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place,Suite 330, Boston, MA 02111-1307, USA
ok that's the whole page bestie, slay ๐โจ this drop is from perl v5.42.2, dated 2026-02-15, and it's still serving Astro:...:Planet(3pm) energy ๐
๐ซถ๐
๐ฆ where this page comes from
- alpine 3.24: perl-astro-coords-doc 0.23-r1 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms