sunpy.sun.constants.get(key)[source] [edit on github]

Retrieve a constant by key. This is just a short cut into a dictionary.

Parameters:key (Python string or unicode) – Key in dictionary in constants
Returns:constant (Constant)

See also

Contains the description of constants, which, as a dictionary literal object, does not itself possess a docstring.


>>> from sunpy.sun import constants
>>> constants.get('mass')
<<class 'astropy.constants.iau2012.IAU2012'> name='Solar mass' value=1.9891e+30 uncertainty=5e+25 unit='kg' reference="Allen's Astrophysical Quantities 4th Ed.">