ó
    1øÜi   ã                   ó,   • S r SSKJr  S rS rS rS rg)zFCalculate different kinds of radiation components via default values

é   )Únumericc                 óš   •  S[         R                  " [         R                  " U 5      5      -  nU$ ! [         a    [	        S5      n U$ f = f)Nr   Úinf)ÚmathÚsinÚradiansÚZeroDivisionErrorÚfloat)Úaltitude_degÚresults     ÚT/var/www/html/motor_solar_iot/venv/lib/python3.13/site-packages/pysolar/radiation.pyÚget_air_mass_ratior      sI   € ðØ”T—X’XœdŸlšl¨<Ó8Ó9Ñ9ˆð €Møô ó Üu“‰à€Mðús   ‚-1 ±A
Á	A
c                 ón   • SS[         R                  " S[         R                  -  S-  U S-
  -  5      -  -   $ )Niˆ  éK   é   ém  i  ©r   r   Úpi©Údays    r   Ú"get_apparent_extraterrestrial_fluxr   !   s1   € à2œŸš ¤T§W¡W¡¨sÑ!2°c¸C±iÑ!@ÓAÑAÑBÐBó    c                 ón   • SS[         R                  " S[         R                  -  S-  U S-
  -  5      -  -   $ )NgƒÀÊ¡EÆ?gìQ¸…ë¡?r   r   éd   r   r   s    r   Úget_optical_depthr   &   s1   € àEœDŸHšH Q¬¯©¡[°3Ñ%6¸#À¹)Ñ%DÓEÑEÑFÐFr   c                 ó¾   • US:„  n[         R                  " U 5      n[        U5      n[        U5      n[	        U5      nU[         R
                  " SU-  U-  5      -  U-  $ )Né    éÿÿÿÿ)r   Útm_ydayr   r   r   Úexp)Úwhenr   Ú
is_daytimer   ÚfluxÚoptical_depthÚair_mass_ratios          r   Úget_radiation_directr&   +   s[   € à Ñ"€JÜ
,Š,tÓ
€CÜ-¨cÓ2€DÜ% cÓ*€MÜ'¨Ó5€NØ”$—(’(˜2 Ñ-°Ñ>Ó?Ñ?À*ÑLÐLr   N)Ú__doc__Ú r   r   r   r   r   r&   © r   r   Ú<module>r*      s&   ðñ$õ òòCò
Gó
Mr   