Contains astronomical and physical constants for use in SunPy or other places.
The package contains a
module that define the constants.
A typical use case might be:
from sunpy.sun._constants import physical_constants as con
||Returns the apparent declination of the Sun.|
||Returns the true latitude.|
||Returns the apparent longitude of the Sun.|
||Return the apparent obliquity of the ecliptic.|
||Returns the apparent right ascension of the Sun.|
||Return the Carrington Rotation number|
||Returns the eccentricity of the Sun Earth Orbit.|
||Returns the Sun’s equation of center (in degrees)|
||Returns the geometric mean longitude (in degrees)|
||Returns the position of the solar center in heliographic coordinates.|
||Returns the mean anomaly (the angle through which the Sun has moved assuming a circular orbit) as a function of time.|
||Returns the mean ecliptic longitude.|
||Returns the position of the Sun (right ascension and declination) on the celestial sphere using the equatorial coordinate system in arcsec.|
||Print out a summary of Solar ephemeris|
||Return the solar cycle number.|
||Returns the position of the Solar north pole in degrees.|
||Return the angular size of the semi-diameter of the Sun as|
||Returns the Sun Earth distance (AU).|
||Returns the Sun’s true anomaly (in degrees).|
||Return the true declination.|
||Returns the true latitude.|
||Returns the Sun’s true geometric longitude (in degrees) (Referred to the mean equinox of date.|
||Returns the true obliquity of the ecliptic.|
||Return the true right ascension.|
Fundamental Solar Physical Constants¶
These constants are taken from various sources. The structure of this module is heavily based on if not directly copied from the SciPy constants module but contains Solar Physical constants.
- constants : dict
- A dictionary containing physical constants. Keys are the names of physical constants, values are tuples (value, units, uncertainty). The dictionary contains the following solar physical constants:
- average density:
- The average density of the Sun.
- The average angular size of the Sun as seen from Earth in arcseconds.
- effective temperature:
- The effective black-body temperature of the Sun in Kelvin.
- The ellipticity of the Sun.
- escape velocity:
- The velocity which an object needs to escape from the gravitational pull of the Sun.
- The luminosity of the Sun.
- The mass of the Sun.
- mass conversion rate:
- The rate at which the Sun converts mass to energy.
- mean energy production:
- The mean rate at which the Sun produces energy.
- mean intensity:
- The mean intensity of the Sun.
- The metallicity of the Sun.
- The radius of the Sun at the equator.
- solar flux unit:
- The definition of a solar flux unit.
- sunspot cycle:
- The average duration of the solar activity cycle.
- surface area:
- The surface area of the Sun.
- surface gravity:
- The gravitational acceleration at the surface of the Sun as measured at the equator.
- visual magnitude:
- A measure of the Sun’s brightness as seen by an observer on Earth without the presence of the atmosphere.
- The volume of the Sun.
A number of variables from constants are made available for convenience as attributes.
Solar Physical Models¶
This module contains standard models of the sun from various sources. All data is saved in pandas DataFrames with two added attributes
- source : names the source of the data
- units : a dictionary with the units of each of the columns
- interior : pandas.DataFrame
- The standard model of the solar interior
- evolution : pandas.DataFrame
- The evolution as a function of time of the Sun