diff --git a/examples/units_and_coordinates/constants_reference.py b/examples/units_and_coordinates/constants_reference.py new file mode 100644 index 00000000000..0114c643df2 --- /dev/null +++ b/examples/units_and_coordinates/constants_reference.py @@ -0,0 +1,20 @@ +# coding: utf-8 +""" +=============== +SunPy Constants +=============== + +The example shows all of the solar physics specific constants provided by SunPy. +""" + +from sunpy.sun import constants as con + +############################################################################## +# All constants are stored in a dictionary. A list of all available keys +# which describe each constant can be had with the following command. +print(con.constants.keys()) + +############################################################################## +# The following command will display all constants as well as their values +# in an astropy `Table `_ +print(con.print_all())