如何计算日出/日落时间? [英] How can I compute sunrise/sunset times?

查看:35
本文介绍了如何计算日出/日落时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢跟踪日出和日落时间.在过去的几年里,我一直在用一个小程序来做这个,这个小程序是用我最喜欢的编程语言的流行库编写的.在过去的两个月里,我比平时更经常地记录这些时间,我碰巧注意到在春分那天的日出时间比前一天跳了八分钟!我知道这是不可能的,并与 ,以度为单位以度数 (°) 为单位的日出(取负值时)或日落(取正值时)

  • φ 是地球上观察者的纬度,单位为度
  • δ 是太阳 赤纬,以度为单位
  • I like to keep track of sunrise and sunset times. For the past couple of years I've been doing this with a small program written with a popular library for my favorite programming language. The last two months I've been keeping track of these times more regularly than usual, and I happened to notice that on the day of the equinox the sunrise time jumped eight minutes as compared to the day before! I knew this was impossible and compared with NOAA, finding out that my rise and set times had been off for several days and in fact seemed to be off by about a minute for most of the year.

    At this point, I'd like to just implement the calculations myself. What algorithms or formulas are available to do this computation?

    解决方案

    You may consider reading Wikipedia's article on sunrise equations. The lead paragraph gives the equation:

    where:

    • ωo is the hour angle in degrees at either sunrise (when negative value is taken) or sunset (when positive value is taken) in degree (°)
    • φ is the latitude of the observer on the Earth in degrees
    • δ is the sun declination in degrees

    这篇关于如何计算日出/日落时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆