NAME

Geo::Sun - Calculates the Geodetic Position of the Sun over the Surface of the Earth

SYNOPSIS

use Geo::Sun;
my $gs=Geo::Sun->new;
my $point=$gs->point_dt(DateTime->now);  #read as "Point given DateTime object";
printf "Latitude: %s, Longitude: %s\n", $point->lat, $point->lon;

DESCRIPTION

The Geo::Sun package calculates the position of the Sun over the Earth. The single user method point_dt takes a DateTime object as a parameter and returns a GPS::Point which is the point on the earth where the Sun is directly over at the given time.

The Geo::Sun package is a wrapper around Astro::Coord::ECI::Sun with a user friendly interface.

USAGE

use Geo::Sun;
my $gs=Geo::Sun->new;

CONSTRUCTOR

new

my $gs=Geo::Sun->new;

METHODS

sun

Sets or returns the Astro::Coord::ECI::Sun object.

my $sun=$gs->sun;

ellipsoid

Set or returns the Geo::Ellipsoids object.

my $ellipsoid=$gs->ellipsoid;  #WGS84

point_dt

Returns a GPS::Point given a DateTime oject

my $point=$gs->point_dt(DateTime->now);

BUGS

Please send to the geo-perl email list.

SUPPORT

Try the geo-perl email list.

AUTHOR

Michael R. Davis
CPAN ID: MRDVT
STOP, LLC
domain=>stopllc,tld=>com,account=>mdavis
http://www.stopllc.com/

COPYRIGHT

This program is free software licensed under the...

The BSD License

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO