a
    ߙfb                  	   @   sV  d Z ddlmZ ddlmZ ddlmZmZmZm	Z	m
Z
 e
eg ddlZe Zeddgdgfejed	d
d eddgejed	dd eg dejedddddd eg dejedddddd eg dejedddddd edd gejej ejed	d!d ed"d#gejej ejedd$d eg d%ejedd&d'd(dd eg d)ejedd*d+d,dd eg d-ejedd.d/d0dd ed1d2gejej ejejej  ejed	d3d4d5dd eg d6ejedd7d8d9dd ed:d;gd;gfd;d;d<ed	d= eg d>d?ej  ejd@  ej! ed	dAd eg dBdCdDej"  e# ejdE  ejdF  ej$dF  ed	dGd edHdIgdIgfdIdIdIdJed	dKgdL edMged	dN edOdPgeddN edQgedR edSged	dN edTged	dN edUged	dN edVgdWedXdYddZ [[[dd[l%m&Z' e durJe e'e 7 Z d\d] Z(dS )^zr
This package defines the astrophysics-specific units.  They are also
available in the `astropy.units` namespace.
   )si    )UnitBasedef_unitsi_prefixesbinary_prefixesset_enabled_unitsNZAUauZastronomical_unitTz>astronomical unit: approximately the mean Earth--Sun distance.)	namespaceprefixesdocpcZparsecz'parsec: approximately 3.26 light-years.)ZsolRadR_sunZRsunzSolar radiusFz	R_{\odot}u   R☉)ZlatexZunicode)r
   r   r   format)Z
jupiterRadR_jupZRjupZ	R_jupiterZRjupiterzJupiter radiusz	R_{\rm J}u   R♃)r
   r   r   r   )ZearthRadR_earthZRearthzEarth radiusz
R_{\oplus}u   R⊕ZlyrZ	lightyearz
Light yearZlsecZlightsecondzLight second)ZsolMassM_sunZMsunz
Solar massz	M_{\odot}u   M☉)ZjupiterMassM_jupZMjupZ	M_jupiterZMjupiterzJupiter massz	M_{\rm J}u   M♃)Z	earthMassM_earthZMearthz
Earth massz
M_{\oplus}u   M⊕ZRyZrydbergzDRydberg: Energy of a photon whose wavenumber is the Rydberg constantz
R_{\infty}u   R∞)ZsolLumL_sunZLsunzSolar luminancez	L_{\odot}u   L☉phZphoton)ogipvounit)r   r
   r   )ZJyZJanskyZjanskygˮ@:   zJansky: spectral flux density)RZRayleighZrayleighg    _B   zRayleigh: photon fluxZctcount)Zfitsr   r   p)r   r
   r   Zexclude_prefixesZadu)r
   r   ZDNZdnZSun)r
   ZchanbinZbeamZelectronzNumber of electronsze^{-}u   e⁻)r   r
   r   )generate_unit_summaryc                 C   sR   | dkr8dd l }ddlm} ddlm} |d| |S tdtd| dd S )	Nlittlehr   )r"   )AstropyDeprecationWarningz`littleh` is deprecated from module `astropy.units.astrophys` since astropy 5.0 and may be removed in a future version. Use `astropy.cosmology.units.littleh` instead.zmodule z has no attribute .)warningsZastropy.cosmology.unitsr"   Zastropy.utils.exceptionsr#   warnAttributeError__name__)attrr%   r"   r#    r*   6lib/python3.9/site-packages/astropy/units/astrophys.py__getattr__   s    r,   ))__doc__ r   Zastropy.constantsZ_sicorer   r   r   r   r   ZnumpyZ_numpyglobalsZ_nsr	   r   r   r   r   cZyrtomsr   r   r   ZRydhZeVr   WZHzZpir   srZutilsr!   Z_generate_unit_summaryr,   r*   r*   r*   r+   <module>   s   


&
 

	

