问题标签 [astronomy]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
objective-c - Objective-C 天文学库
我需要做一些月出方位角和时间计算。谁能推荐一个好的天文学库,最好是在 Objective-C 中?
opengl - 星表和天体坐标的可视化
有没有人有建议的方法来可视化星目录中的数据,例如明亮的星目录。
我认为会有一个概念球体和一个视点,即在该球体的中心,两个向量代表视图方向和视图视野。
然后我会以某种方式从恒星目录天体坐标坐标(作为球体上的点)投影到视口上,并根据该恒星的色温绘制一个彩色像素。
任何人都可以提供任何提示或建议吗?
可以使用 OpenGL 中的广告牌来完成吗?
或者可能是一个列表GL_POINTS
javascript - BV 到开尔文公式
在寻找“BV 颜色指数到温度的转换公式”时
我发现了这个javascript:
这应该将BV颜色指数转换为温度。有谁知道这是如何工作的,以及输出值是否是摄氏度或开尔文温度的近似值?
它与对数的产品有关吗?
python - Moon / Lunar Phase Algorithm
Does anyone know an algorithm to either calculate the moon phase or age on a given date or find the dates for new/full moons in a given year?
Googling tells me the answer is in some Astronomy book, but I don't really want to buy a whole book when I only need a single page.
Update:
I should have qualified my statement about googling a little better. I did find solutions that only worked over some subset of time (like the 1900's); and the trig based solutions that would be more computationally expensive than I'd like.
S Lott in his Python book has several algorithms for calculating Easter on a given year, most are less than ten lines of code and some work for all days in the Gregorian calendar. Finding the full moon in March is a key piece of finding Easter so I figured there should be an algorithm that doesn't require trig and works for all dates in the Gregorian calendar.
python - 日出/设置计算
我正在尝试根据下面提供的链接使用 python 计算日落/上升时间。
我通过 excel 和 python 完成的结果与实际值不匹配。关于我可能做错了什么的任何想法?
我的 Excel 表可以在.. http://transpotools.com/sun_time.xls下找到
python - Python Ephem / 日期时间计算
输出应将第一个日期处理为“day”,将第二个日期处理为“night”。我已经玩了几个小时了,无法弄清楚我做错了什么。有任何想法吗?
编辑 我认为问题是由于我的日期比较实现
输出:
time_of_day.py
python - 使用 PyEphem 计算黎明和日落时间
是否可以使用PyEphem计算黎明、黄昏和日落时间?我使用 PyEphem 生成白天和黑夜时间,但在日落/黄昏/黎明时没有找到任何东西
c# - Bing Maps Silverlight Control:如何显示太阳的足迹?
我有太阳的纬度、经度和高度,但我不知道如何在特定时间显示太阳的足迹,如 http://www.karhukoti.com和 http://www.timeanddate.com/worldclock/ sunearth.html。
有人可以帮忙吗?
谢谢。
编辑:
我下载了 JSatTrak 的源代码并尝试实现drawFootPrint和getFootPrintPolygons,但没有成功。