Astro:...:Planet(3pm)

๐Ÿ“ฆ version 0.23, in alpine 3.24

๐Ÿ’… 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 two Astro::Coords::Angle objects 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 if Astro::Coords::apply_offset is 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 (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