B
    du	                 @   sL  d Z ddlZddlmZmZmZ ddlmZ	 ddl
mZmZmZ e Zeddge	jed	d
d eddge	jdej dej d   ed	dd eddgdej ejd  ej ej ed	dd eddgdej ejd  ej ej ed	dd eddgedgdgdfgd d d!d" Z[[[[[dd#lmZ e dk	rHe ee 7 Z dS )$z
This module defines magnitude zero points and related photometric quantities.

The corresponding magnitudes are given in the description of each unit
(the actual definitions are in `~astropy.units.function.logarithmic`).
    N   )UnitBasedef_unitUnit)si)cgsr   	astrophysZBolZL_bolFzULuminosity corresponding to absolute bolometric magnitude zero (magnitude ``M_bol``).)	namespaceprefixesdocZbolZf_bol   g      $@   zVIrradiance corresponding to appparent bolometric magnitude zero (magnitude ``m_bol``).ZABZABfluxg1n;z5AB magnitude zero flux density (magnitude ``ABmag``).ZSTZSTfluxg|~+0/>z5ST magnitude zero flux density (magnitude ``STmag``).ZmgymaggynZnanog&.>zMaggies - a linear flux unit that is the flux for a mag=0 object.To tie this onto a specific calibrated unit system, the zero_point_flux equivalency should be used.c             C   s   t | }t|fgS )a  
    An equivalency for converting linear flux units ("maggys") defined relative
    to a standard source into a standardized system.

    Parameters
    ----------
    flux0 : `~astropy.units.Quantity`
        The flux of a magnitude-0 object in the "maggy" system.
    )r   r   )Zflux0Z
flux_unit0 r   f/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/astropy/units/photometric.pyzero_point_flux)   s    
r   )generate_unit_summary)__doc__numpyZ_numpycorer   r   r   Zastropy.constantsr   Z_si r   r   globalsZ_nsZL_bol0piZpcZergcmsZHzZAAr   utilsr   Z_generate_unit_summaryr   r   r   r   <module>	   s2   $&&
