fix(ephemeris): include nutation in the sidereal frame
恒星黄道改为与 Swiss Ephemeris FLG_SIDEREAL 同一套含章动岁差。 产品默认路径不再用平岁差去减含章动的视位置。上升和宫头用同一个岁差。 校正身份升到 rectification-v5-matrix-scoring-12。 BUG-1275。未推送,未部署。v5 先验头名三格下降 1.3 个百分点,不调参。
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ _script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
if _script_dir not in sys.path:
|
||||
sys.path.insert(0, _script_dir)
|
||||
from varga import varga_map, SIGNS as VARGA_SIGNS, SIGN_LORDS as VARGA_SIGN_LORDS
|
||||
from ayanamsa_utils import DEFAULT_AYANAMSA_NAME, apply_ayanamsa, normalize_ayanamsa_name
|
||||
from ayanamsa_utils import DEFAULT_AYANAMSA_NAME, apply_ayanamsa, normalize_ayanamsa_name, sidereal_ayanamsa_degrees
|
||||
|
||||
# ============================================================================
|
||||
# 常量
|
||||
@@ -173,7 +173,7 @@ def build_shadbala_context(jd_ut: float, lat: float, lon: float, ayanamsa: str =
|
||||
"jd_ut": float(jd_ut), "jd_local": local_jd,
|
||||
"lat": float(lat), "lon": float(lon), "timezone": float(timezone),
|
||||
"year": int(year), "month": int(month), "day": int(day), "local_hour": float(local_hour),
|
||||
"ayanamsa": key, "ayanamsa_degrees": float(swe.get_ayanamsa_ut(float(jd_ut))),
|
||||
"ayanamsa": key, "ayanamsa_degrees": sidereal_ayanamsa_degrees(float(jd_ut), swe),
|
||||
"sunrise_hour": sunrise, "sunset_hour": sunset, "previous_sunset_hour": previous_sunset,
|
||||
"house_midpoints": [float(value) % 360 for value in cusps],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user