Re: Calculate Sunrise, Sunset?
Re: Calculate Sunrise, Sunset?
- Subject: Re: Calculate Sunrise, Sunset?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 05 Feb 2004 18:37:06 -0800
On 2/5/04 5:12 PM, "Chris Espinosa" <email@hidden> wrote:
>
On Feb 5, 2004, at 2:39 PM, Marconi wrote:
>
>
> Can anyone steer me to where I can learn how to calculate local
>
> sunrise and sunset times with AS, given latitude and longitude?
>
>
This will be harder in AppleScript than it would be in other languages
>
(say, Java) because it requires trigonometry, and AppleScript has no
>
built-in trig functions.
>
>
There are dozens of these on the Web. You might start with
>
>
http://www.jgiesen.de/astro/astroJS/SunPositionCalculator.htm
>
>
Go to that page and choose View Source; the JavaScript to calculate
>
sunrise and sunset is all there.
The Satimage scripting addition has a number of trigonometric functions -
probably all you need.
http://www.satimage.fr/software/en/downloads_osaxen.html
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.