本文介绍了如何计算日出,日落和中午的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试制作一个程序,根据世界上任何城市的经度,纬度和时区计算日出,日落和太阳中午。 我怎么能在 vb 中做到这一点? 谢谢。
I'm trying to make a program that calculates the sunrise, sunset and solar noon based on longitude, latitude and time zone for any city in the world. How can I do that in vb? Thanks.
推荐答案日出和日落的计算很容易找到: https://en.wikipedia。 org / wiki / Sunrise_equation [ ^ ] users.electromagnetic/bu/astro/sunrise-set.php [ ^ ] aa.quae.nl/en/reken/zonpositie.html [ ^ ] 您只需将计算转换为代码。 没有必要计算中午 - 它总是在下午12点。 :) (除非你的意思是太阳中午,它包含在日出/日落计算中。) 编辑:我发布了我用于GitHub的C#代码,这可能会给你一个开始的地方: gist.github/RichardD2/f6b08a5791b21ac77ce7 [ ^ ] The calculations for sunrise and sunset are easy to find: en.wikipedia/wiki/Sunrise_equation[^] users.electromagnetic/bu/astro/sunrise-set.php[^] aa.quae.nl/en/reken/zonpositie.html[^] You just need to translate the calculation into code. There's no need to "calculate" noon - it's always at exactly 12 PM. :) (Unless you mean "solar noon", which is included in the sunrise / sunset calculation.) I've posted the C# code I use to GitHub, which might give you a place to start: gist.github/RichardD2/f6b08a5791b21ac77ce7[^]
更多推荐
如何计算日出,日落和中午
发布评论