Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.598.170 Times

DateTime::Astro::Sunrise 0.01_01

  Date Added: November 20, 2010  |  Visits: 1.003

DateTime::Astro::Sunrise

Report Broken Link
Printer Friendly Version


Product Homepage
Download (103 downloads)

DateTime::Astro::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. SYNOPSIS use DateTime; use DateTime::Astro::Sunrise; ^ my $dt = DateTime->new( year => 2000, month => 6, day => 20, ); my $sunrise = DateTime::Astro::Sunrise ->new(-118,33,undef,1); my ($tmp_rise, $tmp_set) = $sunrise->sunrise($dt); This module will return a DateTime Object for sunrise and sunset for a given day. USAGE my $sunrise = DateTime::Astro::Sunrise -new(longitutide,latatude,ALT,Iteration);> inter is set to either 0 or 1. If set to 0 no Iteration will occur. If set to 1 Iteration will occur. Default is 0. There are a number of sun altitides to chose from. The default is -0.833 because this is what most countries use. Feel free to specify it if you need to. Here is the list of values to specify altitude (ALT) with: 0 degrees Center of Suns disk touches a mathematical horizon -0.25 degrees Suns upper limb touches a mathematical horizon -0.583 degrees Center of Suns disk touches the horizon; atmospheric refraction accounted for -0.833 degrees Suns supper limb touches the horizon; atmospheric refraction accounted for -6 degrees Civil twilight (one can no longer read outside without artificial illumination) -12 degrees Nautical twilight (navigation using a sea horizon no longer possible) -15 degrees Amateur astronomical twilight (the sky is dark enough for most astronomical observations) -18 degrees Astronomical twilight (the sky is completely dark) Notes on Iteration The orginal method only gives an approximate value of the Suns rise/set times. The error rarely exceeds one or two minutes, but at high latitudes, when the Midnight Sun soon will start or just has ended, the errors may be much larger. If you want higher accuracy, you must then use the iteration feature. This feature is new as of version 0.7. Here is what I have tried to accomplish with this. a) Compute sunrise or sunset as always, with one exception: to convert LHA from degrees to hours, divide by 15.04107 instead of 15.0 (this accounts for the difference between the solar day and the sidereal day. b) Re-do the computation but compute the Suns RA and Decl, and also GMST0, for the moment of sunrise or sunset last computed. c) Iterate b) until the computed sunrise or sunset no longer changes significantly. Usually 2 iterations are enough, in rare cases 3 or 4 iterations may be needed. ($sunrise, $sunset) = $sunrise->($dt); Returns two DateTime objects sunrise and sunset. Please note that the time zone for these objects is set to UTC. So dont forget to set your timezone!!.

Requirements: No special requirements
Platforms: Linux
Keyword: Datetime Datetimeastrosunrise Degrees Given Horizon Libraries Perl Datetime Programming Sunrise Suns Sunset
Users rating: 0/10

License: Freeware Size: 6.14 KB
DATETIME::ASTRO::SUNRISE RELATED
Libraries  -  DateTime::Event::Sunrise 0.0501
DateTime::Event::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. SYNOPSIS use DateTime; use DateTime::Event::Sunrise; my $dt = DateTime->new( year => 2000, month => 6, day => 20, ); my $sunrise =...
12.29 KB  
Audio Tools  -  audprog-time 0.0.1
This is a program to store data calculated from the tempo of a song into different degrees of seconds for use with 'programming synths'. Written in C++ with Visual C++ Express. Java version coming soon.
34.59 KB  
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
Libraries  -  perlfaq3 5.8.8
perlfaq3 Perl module contains programming tools. How do I do (anything)? Have you looked at CPAN (see perlfaq2)? The chances are that someone has already written a module that can solve your problem. Have you read the appropriate manpages?...
12.2 MB  
Programming  -  jtr 1.1
Java library that emulates the Perl 5 'transliterate' operation on a given string. Most Perl 5 features are supported, including all the standard modifiers and most Perl escape sequences. Patterns are compiled for speed, and runtime performance is...
72.31 KB  
Programming  -  Prima 1.22
Prima is an extensible Perl toolkit for multi-platform GUI development. Platforms supported include Linux, Windows NT/9x/2K, OS/2 and UNIX/X11 workstations (FreeBSD, IRIX, SunOS, Solaris and others). The toolkit contains a rich set of standard...
1.3 MB  
Libraries  -  Test::STDmaker 0.23
Test::STDmaker is a Perl module to generate test scripts, demo scripts from a test description short hand. SYNOPSIS ####### # Procedural (subroutine) interface # use Test::STDmake qw(find_t_roots get_data perl_command); @t_path =...
133.12 KB  
Libraries  -  GODI 20060118
GODI library provides an advanced programming environment for the Objective Caml (OCaml) language. From INRIA (who created OCaml) you can get the OCaml compiler and runtime system, but this is usually not enough to develop applications. You also...
1.5 MB  
Astronomy  -  Planetary, Lunar, and Stellar Visibility 3.1
Planetary, Lunar, and Stellar Visibility presents a 3-color diagram that shows when a planet, a star, the moon or the sun is visible during any year from 3000 BC to AD 6000 at any location on the earth. The vertical axis marks the months of the...
5.8 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB