用于月亮和太阳落下/升起时间的 Web 服务或 .net 库?

发布于 2024-08-12 04:32:43 字数 80 浏览 8 评论 0 原文

任何人都知道可以提供任何给定日期和任何给定纬度/经度的太阳和月亮的升起/落下时间的 Web 服务或 .NET 类库吗?

提前致谢。

Anyone know of a web service or .NET class library that can provide rise/set times for the sun and moon for any given date and any given latitude/longitude?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

木森分化 2024-08-19 04:32:43

是的 - CodeProject 的 SunTime 类 可能会有所帮助!

yes - the SunTime class at CodeProject may be of some help!

心欲静而疯不止 2024-08-19 04:32:43

请查看ASCOM 计划。这是微软的万维望远镜使用的技术来提供对望远镜的控制。在 ASCOM 平台 5.5 版中,我们刚刚引入的新组件之一是 NOVAS 库,它为您提供了大量矢量天体测量例程和开普勒轨道引擎,用于对太阳系天体进行位置天体测量。

我不认为有一个函数可以直接为您提供日出/日落,但它会为您提供计算这些以及更多内容所需的所有构建块。

所有这些也是开源的。原始的 NOVAS 例程可从上面链接的美国海军天文台站点获取,采用 FORTRAN 和 C 语言。ASCOM 源代码可从我们的 subversion 服务器获取。

Have a look at The ASCOM Initiative. This is the technology used by Microsoft's World Wide Telescope to provide control of telescopes. In version 5.5 of the ASCOM Platform, one of the new components that we've just introduced is a .NET interface to the NOVAS library, which gives you a host of vector astrometry routines and the Kepler orbit engine for doing positional astrometry on solar system bodies.

I don't think that there is a function that will directly give you sunrise/sunset, but it will give you all of the building blocks you need to compute these and much more.

All of this is open source, too. The original NOVAS routines are available from the US Naval Observatory site linked above, in both FORTRAN and C. The ASCOM source code is available from our subversion server.

甜警司 2024-08-19 04:32:43

另外,还有一个星历,这可能就是您正在寻找的,因为这是终极天文学家编程套件?几年前,当我使用VB6制作一个占星程序时,我曾对此进行过一次微弱的尝试,它生成了十二宫中每一宫的星座的漂亮报告,但当时无法绘制星星的图。生日/时间输入足够准确。

希望这有帮助,
此致,
汤姆.

Also, there is a ephemeris which might be what you're looking for as this is the ultimate astronomer programming kit? Have made a feeble attempt at it a few years ago when I made an astrology program using VB6, it produced a nice report of the starsigns in the each of the twelve houses, but couldn't get the drawing of the stars at the time of the birthdate/time input accurate enough.

Hope this helps,
Best regards,
Tom.

当爱已成负担 2024-08-19 04:32:43

CooperativeSharp 非常适合此目的,并且超级易于使用。

using CoordinateSharp;

//Seattle on 5-Jun-2018 @ 10:10
Coordinate c = new Coordinate(47.6062, -122.3321, new DateTime(2018,6,5,10,10,0));
Console.WriteLine(c.CelestialInfo.SunSet);         // 5-Jun-2018 4:02:00 AM

它可以计算太阳时间和月球时间,包括日食。

CoordinateSharp is perfect for this and super easy to use.

using CoordinateSharp;

//Seattle on 5-Jun-2018 @ 10:10
Coordinate c = new Coordinate(47.6062, -122.3321, new DateTime(2018,6,5,10,10,0));
Console.WriteLine(c.CelestialInfo.SunSet);         // 5-Jun-2018 4:02:00 AM

It can do both solar and lunar times to include eclipses.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文