
    R1i
                     F    d Z ddlmZ ddlmZ g dZg dZg dZg dZd Z	y	)
zIRoutines specific to some calculation related with cultures in East Asia.    )tau)iau2000b_radians)   春分   清明u   谷雨   立夏u   小满u   芒种   夏至   小暑   大暑   立秋u   处暑   白露   秋分   寒露   霜降   立冬   小雪   大雪   冬至   小寒   大寒   立春   雨水u   惊蛰)r   r      穀雨r   u   小滿   芒種r   r	   r
   r   u   處暑r   r   r   r   r   r   r   r   r   r   r   r   u   驚蟄)r   r   r   r   u   小満r   r   r	   r
   r   u   処暑r   r   r   r   r   r   r   r   r   r   r   r   u   啓蟄)u   Xuân phânz
Thanh minhu	   Cốc vũu
   Lập hạu   Tiểu mãnu   Mang chủngu	   Hạ chíu   Tiểu thửu   Đại thửu	   Lập thuu
   Xử thửu   Bạch lộu	   Thu phânu	   Hàn lộu   Sương giángu   Lập đôngu   Tiểu tuyếtu   Đại tuyếtu   Đông chíu   Tiểu hànu   Đại hànu   Lập xuânu
   Vũ thủyu   Kinh trậpc                 8    | d   | d   fd}d|_         |S )a  Build a function of time that returns the solar terms of the year.

    The function that this returns will expect a single argument that is
    a :class:`~skyfield.timelib.Time` and will return 0 through 23 for
    the solar terms.

    The name of the solar terms may vary in different cultures, so we
    have table of names in Simplified Chinese, Traditional Chinese,
    Japanese and Vietnamese

    Reference:

    https://en.wikipedia.org/wiki/Solar_term

    earthsunc                    t        |       | _        j                  |       }|j                        j	                         j                  d      \  }}}|j                  t        dz  z  dz  j                  t              S )z'Return season 0 through 23 at time `t`.date   )
r   _nutation_angles_radiansatobserveapparentecliptic_latlonradiansr   astypeint)te_slonr   r   s       ^/home/cursorai/projects/iching/venv/lib/python3.12/site-packages/skyfield/almanac_east_asia.pysolar_term_atz"solar_terms.<locals>.solar_term_at   sg    %5a%8"HHQKYYs^,,.>>vF
4r*R/77<<    g      ,@)	step_days)	ephemerisr-   r   r   s     @@r,   solar_termsr1   w   s.      gE
E
C= #Mr.   N)
__doc__skyfield.constantsr   skyfield.nutationlibr   SOLAR_TERMS_ZHSSOLAR_TERMS_ZHTSOLAR_TERMS_JPSOLAR_TERMS_VNr1    r.   r,   <module>r:      s/    O " 18886r.   