dferrante / pywx

python weather bot
10 stars 3 forks source link

correct sunrise/sunset for atmospheric pressure #2

Closed dmd closed 5 years ago

dmd commented 8 years ago

Someone (maybe even me) should correct forecast.io's sunrise/sunset times for local atmospheric pressure.

I confirmed with forecast.io that they do not do this correction.

Code to do it is in GNU Gcal, rc-astro.c, function atmospheric_refraction(altitude, pressure, temperature).

dmd commented 8 years ago

Failing to do this means the time of sunset/sunrise can be wrong by several seconds!

dziban303 commented 5 years ago

Did you ever do anything with this?

dmd commented 5 years ago

No and I'm not going to.