Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • BackTrack 5 R1
  • Wine 1.2.3 / 1.4 RC4
  • Mozilla Firefox 10...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.2.7
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.1
  • Home > Linux > Programming > Perl Modules

    Astro::Coord::ECI::Sun 0.047

    Download button

    No screenshots available
    Downloads: 494  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tom Wyant | More programs
    Perl Artistic License / FREE
    January 27th, 2012, 03:04 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Astro::Coord::ECI::Sun description

    Compute the position of the Sun.

    Astro::Coord::ECI::Sun is a Perl module to compute the position of the Sun.

    SYNOPSIS

     use Astro::Coord::ECI;
     use Astro::Coord::ECI::Sun;
     use Astro::Coord::ECI::Utils qw{deg2rad};
     
     # 1600 Pennsylvania Ave, Washington DC USA
     # latitude 38.899 N, longitude 77.038 W,
     # altitude 16.68 meters above sea level
     my $lat = deg2rad (38.899); # Radians
     my $long = deg2rad (-77.038); # Radians
     my $alt = 16.68 / 1000; # Kilometers
     my $sun = Astro::Coord::ECI::Sun->new ();
     my $sta = Astro::Coord::ECI->
     universal (time ())->
     geodetic ($lat, $long, $alt);
     my ($time, $rise) = $sta->next_elevation ($sun);
     print "Sun @{[$rise ? 'rise' : 'set']} is ",
     scalar localtime $time, "
    ";


    This module implements the position of the Sun as a function of time, as described in Jean Meeus' "Astronomical Algorithms," second edition. It is a subclass of Astro::Coord::ECI, with the id, name, and diameter attributes initialized appropriately, and the time_set() method overridden to compute the position of the Sun at the given time.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Sun position | Perl module | Perl | Sun | position



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM