
    IR-e                     z    d Z  e            Zd Z e             e ddlmZ e  e e                      z  Z d ZdS )u<  
This package defines units used in the CDS format, both the units
defined in `Centre de Données astronomiques de Strasbourg
<https://cds.unistra.fr/>`_ `Standards for Astronomical Catalogues 2.0
<https://vizier.unistra.fr/vizier/doc/catstd-3.2.htx>`_ format and the `complete
set of supported units <https://vizier.unistra.fr/viz-bin/Unit>`_.
This format is used by VOTable up to version 1.2.

These units are not available in the top-level `astropy.units`
namespace.  To use these units, you must import the `astropy.units.cds`
module::

    >>> from astropy.units import cds
    >>> q = 10. * cds.lyr  # doctest: +SKIP

To include them in `~astropy.units.UnitBase.compose` and the results of
`~astropy.units.UnitBase.find_equivalent_units`, do::

    >>> from astropy.units import cds
    >>> cds.enable()  # doctest: +SKIP
c            	      Z
   ddl } ddlm} ddlm} ddlm} |j        |j        z   }d |D             }g dg|j	        d	fd
g|j
        ddgfdg|j        dfdg|j        dddgfdg|j        dfdg|j        dfddgddgf|j        dfddg|j        dfddg|j        dfd g|j        d!fd"d#g|j        d$fd%g|j        d%fd&g|j        d&fd'g|j        d'fd(g|j        d(fd)g|j        d*fdg|j        d+d,gfd-gd.|j        z  d/fd0g|j        d1fd2g|j        d3fd4g|j        d5fdg|j        d6dgfd7d8gd9gf|j        d9fd:g|j        d;fd<g|j         d=d>gfd?g|j!        d@fdAg|j"        dAfdBg|j#        dCfdDg|j$        dEfdFg|j%        dGfdHg|j&        dIfdJg|j%        dKfdLdMg|j'        dNfdOg|j(        dPfdQg|j)        dRd,gfdSg|j)        dRfdTg|j)        dUfdVg|j*        dWfdXgdY|j+        z  dXfdZg|j        d[fd\g|j        d6d]gfd^d_g|j,        d`fdag|j-        dbfdcg|j.        ddfdeg|j/        dffdgg|j0        dhd
gfdig|j1        djfdkdlg|j2        dmfdng|j3        dofd>g|j+        dpfdqg|j4        drfdsg|j5        dtfdug|j6        dvfdwg|j        d6fdxgdy|j7        z  dzfd{g|j8        d|fd}g|j9        d~fddg|j:        dfddgg f|j;        dfdg|j<        dfdg|j=        dfdg|j>        dfdg|j7        dfdg|j?        dfdg|j@        dfdg|A                    | jB                  dfdg|jC        dfdg|A                    d          dfdg|jD        dfdg|jE        dfdg|jF        dfdg|jG        dfddg|jH        dfdg|jI        dfdg|jJ        dfddg|jK        dfdg|jL        dfdg|jM        dfdg|jN        dfdgd|jO        z  ddgfdg|jP        ddd
gfdg|jQ        dfdg|jR        dfdg|jS        dfdg|j
        df}|D ]E}t          |          dk    r	|\  }}}	g }
n|\  }}}	}
|U                    |||t          |	|
           F|U                    dg|jW        dt                     |U                    dg|jX        dt                     |U                    ddg|jY        dt                     |U                    dg|jZ        dt                     |U                    dg|t          dɬʦ           dS )zInitialize CDS units module.    N)units)si   )corec                      g | ]\  }}}|||fS  r	   ).0shortlongfactors       1lib/python3.11/site-packages/astropy/units/cds.py
<listcomp>z&_initialize_module.<locals>.<listcomp>+   s&    MMM+@E4v&MMM    AAmpereayearPa0zBohr radiusalz
Light yearcdlyralphazFine structure constantAA   ÅAngstrom	Angstroemarcminarcmzminute of arcarcsecarcszsecond of arcatm
atmosphereAUauzastronomical unitbarbarnbitbyteCCoulombzspeed of lightpcalgbٽ@caloriecdcandelactcountDzDebye (dipole)z
Julian daydeg   °degreedyndyneezelectron chargemeps0zelectric constantergeVzelectron voltFFaradGzGravitation constantggramgaussGaussgeoMassMgeoz
Earth massHHenryhhourhrz\hzPlanck constantHzHertzinchg
F%u?JJouleJDMjovMassMjupzJupiter massJyJanskyKKelvink	BoltzmannllitrelmlumenLsunsolLumzsolar luminositylxluxmetermag	magnitudemezelectron massminminuteMJDmmHgg%iP`@zmillimeter of mercurymolmolempzproton massMsunsolMassz
solar massmu0u   µ0zmagnetic constantmuBzBohr magnetonNNewtonOhmPaPascalpcparsecphphotonpiu   πpixpixelppmgư>zparts per millionRzgas constantradradianRgeozEarth equatorial radiusRjupzJupiter equatorial radiusRsunsolRadzsolar radiusRyRydbergSSiemensssecsecondsr	steradianSunz
solar unitTTeslatg     @@zmetric tonneuzatomic massdaVVoltWWattWbWeberyr   )prefixes	namespacedocexclude_prefixesu   µaszmicrosecond of arc)r   r   maszmillisecond of arcz----zdimensionless and unscaled%percentCrabzCrab (X-ray) flux)r   r   r   )[numpyastropyr   astropy.constantsr    r   si_prefixesbinary_prefixesr   r   r   r   r   r   	arcminute	arcsecondr$   r'   r(   r)   r*   r+   r,   r   rQ   r1   r3   r5   r   r8   r9   r;   r=   r>   r?   r@   rB   rC   M_earthrI   rK   rN   r<   M_juprW   rY   k_Br]   r_   rb   rc   rf   m_erj   rw   rm   m_prq   rr   rs   rt   rv   ry   r{   Unitr}   r~   r   r   R_earthR_jupr   r   r   r   r   r   r   kgr   r   r   r   lendef_unit_nsmicroarcsecondmilliarcseconddimensionless_unscaledr   )npr   _sir   r   mappingentrynamesunitr   excludess              r   _initialize_moduler      s	    """"""++++++ $"66H NMHMMMH
V
XV
VcU#V 'V sCj1	V
 !%&V CI89V ,[1	2AD*EV F	Q[/:V F	Q[/:V #'<(V qt01V !%V 166"V !%V 166"V  Y!V" '#/#V$ &13,	*%V& y!'V( w)V* %&+V, \C5)-V. $-(	$ah9/V0 !% 1V2 (3%03V4 38015V6 !%7V8 '9V: W;V< -.=V> V?V@ AC!AVB V	ai6CVD WEVF VcU#GVH fIVJ #%*+KVL wMVN 6AC<(OVP WQVR lSE*SVT V	ag~6UVV x WVX XYVZ %[V\ Wse$]V^ w_V` (	QX'9:aVb ucVd WeVf !%%gVh /*iVj !(H%kVl !#|$mVn =14')@AoVp !% qVr -(sVt )	ai6uVv %."	sw(;<wVx #'?+yVz X{V| !%}V~ x V@ x AVB x CVD %EVF !%!GVH !&&,, 34IVJ ~&KVL !(H%MVN 3; 9:OVP 399:QVR (	QX~6SVT y!UVV YWVX uqsH%YVZ {#[V\ !%&]V^ W_V` ad
NSE2aVb }tSk2cVd VeVf VgVh wiVj fkVGp  
 
u::??$E4HH).&E4h% 	 	
 	
 	
 	
 	MM6(A,2FRUMVVVMM5'1+1EQTMUUUMM		 (	     	MM3%	SMAAA 	MM6(XBUMVVVVVr   Nr   )generate_unit_summaryc                  \    ddl } ddlm}  ||                     t                              S )aq  
    Enable CDS units so they appear in results of
    `~astropy.units.UnitBase.find_equivalent_units` and
    `~astropy.units.UnitBase.compose`.  This will disable
    all of the "default" `astropy.units` units, since there
    are some namespace clashes between the two.

    This may be used with the ``with`` statement to enable CDS
    units only temporarily.
    r   Nr   )set_enabled_units)inspectr   r   	getmoduleenable)r   r   s     r   r   r      s>     NNN''''''W..v66777r   )__doc__globalsr   r   utilsr   _generate_unit_summaryr   r	   r   r   <module>r      s    , giiGW GW GWT       GFFFFF%%ggii000G8 8 8 8 8r   