mirror of
https://github.com/infinet/lunar-calendar.git
synced 2026-01-12 21:17:00 +08:00
update readme
This commit is contained in:
19
README.md
19
README.md
@@ -12,12 +12,13 @@ from 1901 to 2100. It is the most trustworthy Lunar Calendar I can find on the
|
||||
web so far.
|
||||
|
||||
Lunar calendar beyond 1901-2100 range is generated by finding solar terms and
|
||||
moon phases uses [VSOP87](ftp://ftp.imcce.fr/pub/ephem/planets/vsop87) planetary theory and [LEA-406][] lunar theory.
|
||||
moon phases uses [VSOP87](ftp://ftp.imcce.fr/pub/ephem/planets/vsop87) planetary
|
||||
theory and [LEA-406][] lunar theory.
|
||||
|
||||
The full version of LEA-406 and VSOP87 are used by default. A truncated version
|
||||
, aa.py, also included. The full version is slightly slower than the truncated
|
||||
version. Their accuracy of finding apparent Sun and Moon longitude compare to
|
||||
the DE431 based JPL Horizon are showed in following figures.
|
||||
, aa.py, is also included. The full version is slightly slower than the
|
||||
truncated version. Their accuracy of finding apparent Sun and Moon longitude
|
||||
compare to the DE431 based JPL Horizon are showed in following figures.
|
||||
|
||||
![aa_full][]
|
||||
![aa_trunc][]
|
||||
@@ -85,7 +86,6 @@ calendar, thunderbird + lightning插件, iphone/ipad, 安卓都支持。
|
||||
账户的ios设备。
|
||||
|
||||
|
||||
|
||||
### 生成更长时段农历
|
||||
|
||||
如果需要更长时段的农历,可以下载`lunar_ical.py`
|
||||
@@ -97,6 +97,15 @@ calendar, thunderbird + lightning插件, iphone/ipad, 安卓都支持。
|
||||
|
||||
./lunar_ical.py --start=2010-05-01 --end=2021-12-31
|
||||
|
||||
超出1901-2100的农历数据使用VSOP87行星理论和LEA-406月球理论生成. 以香港天文台的
|
||||
数据为标准,用此法生成的1949到2100年间农历有两处不一致:
|
||||
|
||||
1)1979-01-20 大寒
|
||||
|
||||
2)2057-09-29 农历九月全部日期错位一天
|
||||
|
||||
上面两处节气及新月正好在午夜时分,数秒的计算误差就能决定该节气或新月属于前日深
|
||||
夜还是次日凌晨。
|
||||
|
||||
### 版权
|
||||
|
||||
|
||||
@@ -406,7 +406,7 @@ def verify_lunarcalendar():
|
||||
for x in aalc:
|
||||
print x[0], x[1]
|
||||
for i in xrange(len(aalc)):
|
||||
aaday, aaldate = aalc[i]
|
||||
aaday, aaldate = aalc[i]['date'], aalc[i]['lunardate']
|
||||
hkoday, hkoldate = hko[i]
|
||||
#print aaday, aaldate
|
||||
if aaday != hkoday or aaldate != hkoldate:
|
||||
|
||||
Reference in New Issue
Block a user