"""頭頂の板の回転を δc と置いたとき、喉の余分なずれを説明するのに要る喉の δg。
斜めの切片の模型（空気は伸ばさない、required_scale_oblique.py）で、実測に合う層の倍率 s から cosδ = s。
個体ごとに s_g/s_c = cosδg/cosδc として δg を出す。"""
import numpy as np
s = {'branickii': (0.71, 0.90), 'hybrid': (0.61, 0.79), 'gularis': (0.84, 0.90)}  # (喉, 頭頂) required_scale_oblique.py の出力
for dc in (0, 10, 20):
    out = []
    for sp, (g, c) in s.items():
        cg = (g/c)*np.cos(np.radians(dc))
        out.append(f'{sp} {np.degrees(np.arccos(cg)):.0f}°')
    print(f'頭頂 δc={dc:2d}° → 喉 δg: ' + '  '.join(out))
