NAME

Astro::Coords::Planet - coordinates relating to planetary motion

SYNOPSIS

$c = new Astro::Coords::Planet( 'uranus' );

DESCRIPTION

This class is used by Astro::Coords for handling coordinates for planets..

METHODS

Constructor

new

Instantiate a new object using the supplied options.

$c = new Astro::Coords::Planet( 'mars' );

Returns undef on error.

Accessor Methods

planet

Returns the name of the planet.

name

For planets, the name is always just the planet name.

General Methods

array

Return back 11 element array with first element containing the planet name.

This method returns a standardised set of elements across all types of coordinates.

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.

stringify

Stringify overload. Simple returns the name of the planet in capitals.

summary

Return a one line summary of the coordinates. In the future will accept arguments to control output.

$summary = $c->summary();
_apparent

Return the apparent RA and Dec (in radians) for the current coordinates and time.

NOTES

Usually called via Astro::Coords.

REQUIREMENTS

Astro::SLA is used for all internal astrometric calculations.

AUTHOR

Tim Jenness <t.jenness@jach.hawaii.edu>

COPYRIGHT

Copyright (C) 2001-2002 Particle Physics and Astronomy Research Council. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.