Astro::Sunrise

Astro::Sunrise is a Perl extension for computing the sunrise/sunset on a given day.
Download

Astro::Sunrise Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ron Hill
  • Publisher web site:
  • http://search.cpan.org/~rkhill/Astro-Sunrise-0.91/Sunrise.pm

Astro::Sunrise Tags


Astro::Sunrise Description

Astro::Sunrise is a Perl extension for computing the sunrise/sunset on a given day. SYNOPSIS use Astro::Sunrise;#use Astro::Sunrise qw(:constants); ($sunrise, $sunset) = sunrise(YYYY,MM,DD,longitude,latitude,Time Zone,DST); ($sunrise, $sunset) = sunrise(YYYY,MM,DD,longitude,latitude,Time Zone,DST,ALT); ($sunrise, $sunset) = sunrise(YYYY,MM,DD,longitude,latitude,Time Zone,DST,ALT,inter); $sunrise = sun_rise(longitude,latitude); $sunset = sun_set(longitude,latitude); $sunrise = sun_rise(longitude,latitude,ALT); $sunset = sun_set(longitude,latitude,ALT); $sunrise = sun_rise(longitude,latitude,ALT,day_offset); $sunset = sun_set(longitude,latitude,ALT,day_offset);This module will return the sunrise/sunset for a given day. Eastern longitude is entered as a positive numberWestern longitude is entered as a negative numberNorthern latitude is entered as a positive numberSouthern latitude is entered as a negative numberinter 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, including symbolic constants for each.0 degreesCenter of Sun's disk touches a mathematical horizon-0.25 degreesSun's upper limb touches a mathematical horizon-0.583 degreesCenter of Sun's disk touches the horizon; atmospheric refraction accounted for-0.833 degrees, DEFAULTSun's supper limb touches the horizon; atmospheric refraction accounted for-6 degrees, CIVILCivil twilight (one can no longer read outside without artificial illumination)-12 degrees, NAUTICALNautical twilight (navigation using a sea horizon no longer possible)-15 degrees, AMATEURAmateur astronomical twilight (the sky is dark enough for most astronomical observations)-18 degrees, ASTRONOMICALAstronomical twilight (the sky is completely dark)Requirements:· Perl


Astro::Sunrise Related Software