A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » Astronomy Misc
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Algorithm for sunrise and sunset?



 
 
Thread Tools Display Modes
  #1  
Old December 22nd 03, 03:26 PM
M?ht?n
external usenet poster
 
Posts: n/a
Default Algorithm for sunrise and sunset?

Hello all,

I'm sorry if this question is out of place here, but I have no idea
where to look.

I'm looking for a way to calculate the time of sunrise and sunset
given a UTC date & time and a set of coordinates.

I don't care about a specific programming language, as long as I can
figure out the formulae behind the thing.

Thanks in advance,
--
Martijn @ Coppoolse .com
  #2  
Old December 22nd 03, 03:38 PM
Michael A. Covington
external usenet poster
 
Posts: n/a
Default Algorithm for sunrise and sunset?

"Practical Astronomy with your Calculator" by Duffett-Smith is probably the
book you're looking for. It's the simplest approach of many books on the
subject (which is called "spherical astronomy" or "practical astronomy").

"M?ht?n" wrote in message
om...
Hello all,

I'm sorry if this question is out of place here, but I have no idea
where to look.

I'm looking for a way to calculate the time of sunrise and sunset
given a UTC date & time and a set of coordinates.

I don't care about a specific programming language, as long as I can
figure out the formulae behind the thing.

Thanks in advance,
--
Martijn @ Coppoolse .com



  #4  
Old December 22nd 03, 11:19 PM
SFB
external usenet poster
 
Posts: n/a
Default Algorithm for sunrise and sunset?

http://www.freevbcode.com/ShowCode.Asp?ID=341

for clsSunrise by Scott Seligman

"M?ht?n" wrote in message
om...
Hello all,

I'm sorry if this question is out of place here, but I have no idea
where to look.

I'm looking for a way to calculate the time of sunrise and sunset
given a UTC date & time and a set of coordinates.

I don't care about a specific programming language, as long as I can
figure out the formulae behind the thing.

Thanks in advance,
--
Martijn @ Coppoolse .com



  #5  
Old December 23rd 03, 01:57 AM
Len Philpot
external usenet poster
 
Posts: n/a
Default Algorithm for sunrise and sunset?

In article ,
says...
Hello all,

I'm sorry if this question is out of place here, but I have no idea
where to look.

I'm looking for a way to calculate the time of sunrise and sunset
given a UTC date & time and a set of coordinates.

I don't care about a specific programming language, as long as I can
figure out the formulae behind the thing.

Thanks in advance,
--
Martijn @ Coppoolse .com


At one point, there was such a file by s.a.a. contributor Paul Schlyter
in Bob Stout's C SNIPPETS (
www.snippets.org), but I can't seem to
locate it anymore. If you can't locate it any other way, email me and I
send a copy I have to you, from an older version of SNIPPETS. It's
about 500 lines, or I'd just post it here.

--

-- Len Philpot - --
------ -----
http://philpot.org/ --
  #6  
Old December 23rd 03, 03:07 AM
Greg Neill
external usenet poster
 
Posts: n/a
Default Algorithm for sunrise and sunset?

"Len Philpot" wrote in message
...
In article ,
says...
Hello all,

I'm sorry if this question is out of place here, but I have no idea
where to look.

I'm looking for a way to calculate the time of sunrise and sunset
given a UTC date & time and a set of coordinates.

I don't care about a specific programming language, as long as I can
figure out the formulae behind the thing.

Thanks in advance,
--
Martijn @ Coppoolse .com


At one point, there was such a file by s.a.a. contributor Paul Schlyter
in Bob Stout's C SNIPPETS (
www.snippets.org), but I can't seem to
locate it anymore. If you can't locate it any other way, email me and I
send a copy I have to you, from an older version of SNIPPETS. It's
about 500 lines, or I'd just post it here.


Sky & Telescope published a BASIC language program for computing
times of sunrise and sunset. I believe that it was called
SUNUP.BAS, and should be available for download from the S&T
site:

http://skyandtelescope.com/resources...icle_326_1.asp

The program was from August 1994.


  #7  
Old December 24th 03, 11:14 AM
M?ht?n
external usenet poster
 
Posts: n/a
Default Algorithm for sunrise and sunset?

"Greg Neill" wrote...
"Len Philpot" wrote...
At one point, there was such a file by s.a.a. contributor Paul Schlyter
in Bob Stout's C SNIPPETS (www.snippets.org), but I can't seem to
locate it anymore. If you can't locate it any other way, email me and I
send a copy I have to you, from an older version of SNIPPETS. It's
about 500 lines, or I'd just post it here.


Sky & Telescope published a BASIC language program for computing
times of sunrise and sunset. I believe that it was called
SUNUP.BAS, and should be available for download from the S&T
site:

http://skyandtelescope.com/resources...icle_326_1.asp

The program was from August 1994.


Brilliant! Thanks a bunch for all those who replied.

I've got enough to go on with for now.

Thank you very much!
--
Martijn Coppoolse
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mars Sunset Clip Tells Dusty Tale citizen Policy 0 February 27th 04 01:40 AM


All times are GMT +1. The time now is 12:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 SpaceBanter.com.
The comments are property of their posters.