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


Astro-Coords documentation  | view source Contained in the Astro-Coords distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

METHODS

Top

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

Top

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();

diam

Returns the apparent angular planet diameter from the most recent calculation of the apparent RA/Dec.

 $diam = $c->diam();

Returns the answer as a Astro::Coords::Angle object. Note that 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

Return 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'.

NOTES

Top

Usually called via Astro::Coords.

REQUIREMENTS

Top

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

AUTHOR

Top

Tim Jenness <t.jenness@cpan.org>

COPYRIGHT

Top


Astro-Coords documentation  | view source Contained in the Astro-Coords distribution.