update readme

This commit is contained in:
Chen Wei
2014-03-11 17:18:56 +08:00
parent 47e3af60c0
commit 15681c439a
2 changed files with 15 additions and 6 deletions

View File

@@ -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年间农历有两处不一致
11979-01-20 大寒
22057-09-29 农历九月全部日期错位一天
上面两处节气及新月正好在午夜时分,数秒的计算误差就能决定该节气或新月属于前日深
夜还是次日凌晨。
### 版权

View File

@@ -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: