How to calculate dawn / dusk times?

The code that you link to uses a constant (90.833) in the calcHourAngle methods. If you look at these definitions of sunrise/sunset, you will notice that same 90.833 constant under Technical Definitions and Computational Details. A little further down, under civil twilight, the similar constant of 96 is used.

Perhaps changing that constant would get what you are looking for?

The code that you link to uses a constant (90.833) in the calcHourAngle* methods. If you look at these definitions of sunrise/sunset, you will notice that same 90.833 constant under Technical Definitions and Computational Details. A little further down, under civil twilight, the similar constant of 96 is used.

Perhaps changing that constant would get what you are looking for?

Thanks! That's just what I was looking for! – ryyst Apr 9 '10 at 19:11.

I don't have a comment on your code, but you can use the following site to verify the output from your program: aa.usno.navy.mil/data/docs/RS_OneYear.php.

This works, but only if it's okay to assume that elevation is insignificant. Depending on how exact you need to be, someone on a high mountaintop will experience sunrise (or sunset) slightly before (or after) somebody at sea level. For instance, if you're standing on Mount Everest, sunrise and sunset are shifted apart by ~16 minutes, relative to sea level (source: back of the envelope math).

Note that the more extreme your latitude, the starker the contrasts between longer summer days and longer winter nights. Some places on Earth receive sunlight all 24 hours of the day during summer and are shrouded in darkness all 24 hours of the night. These places don't have a daily "dawn" or "dusk", although you could pick the times halfway in between when the sun is lowest and highest in the sky.

Well, the algorithms used to calculate the sun's position are very inaccurate in places above the arctic circle, anyway, so I exclude all those places in my program. Elevation is also not supported as of now. But you think the algorithm works for places like New York City (i.e.No extreme places)?

– ryyst Apr 9 '10 at 17:41 If you're okay with that, then yes, it should work. – John Feminella Apr 9 '10 at 17:47 Re: New York, it probably depends on what floor you're on.. ;-) – R.. Jun 27 at 17:58.

This doesn't work. An easy way to prove this to yourself is that at the poles, the elevation of the sun doesn't change as you rotate your body, so going east or west by 6 degrees won't affect your times. If you're closer to the equator, this calculation will probably be more accurate, but I don't think it's ever perfect.

Clahey: I think your assertion is off. At the poles, there's a singularity. You can't move N degrees "east" from the North Pole, because there's nowhere else to go.

We're also not talking about rotating in place, we're talking about moving an angular distance across a parallel, which is a different translation. – John Feminella Apr 9 '10 at 17:48 Okay, walk 10 steps away from the north pole. 6 degrees east of you is a step to the left.

You'll note that the time of sunset has changed by a miniscule amount. However, beginning and end of civil dusk are still days (weeks, months? ) apart from one another.

– clahey Apr 9 '10 at 17:55.

I'm currently using this code to calculate the sunrise / sunset times. (To be more precise, I'm looking for civil dawn / civil dusk times which are defined as the time when the sun is between 0° and -6° altitude). As a next step, I'd like to compute the dawn beginning and dusk ending times.

I believe the calculations must be very similar. My idea is that if I want to calculate the dawn beginning (dusk ending) time for a place I just calculate the sunrise (sunset) times for a place 6° farther east (west). Can somebody confirm this assumption, or am I thinking wrong?

Thanks for answers!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions