Sun

public class Sun : Object, CelestialBody

The Sun.

  • Accessor to all values of the underlying physical details. Will probably become private once all relevant accessors are implemented and covered.

    Declaration

    Swift

    public fileprivate(set) lazy var physicalDetails: KPCAAPhysicalSunDetails { get set }
  • Accessor to all values of the underlying eclipse details. Will probably become private once all relevant accessors are implemented and covered.

    Declaration

    Swift

    public fileprivate(set) lazy var eclipseDetails: KPCAASolarEclipseDetails { get set }
  • The (constant) diameter of the Sun.

    Declaration

    Swift

    public static let diameter: Meter
  • The (constant/adopted) semi-diameter of the Sun.

    Declaration

    Swift

    public static let semiDiameterAtOneAU: ArcSecond
  • The default apparent altitude of the sun to compute rise and set times.

    Declaration

    Swift

    public static let apparentRiseSetAltitude: Degree

Celestial Body

Coordinates

Celestial Body Supplement

Physical Observations of the Sun

  • The position angle of the northern extremity of the axis of rotation, measured eastwards from the North Point of the solar disk.

    Declaration

    Swift

    public var positionAngleOfNorthernRotationAxisPoint: Degree { get }
  • The heliographic latitude of the center of the solar disk. It represents the tilt of the Sun’s north pole toward (+) or away (-) from Earth. It is zero about June 6 and December 7, and reaches a maximum value about March 6 (-7º.25) and September 8 (+7º.25).

    Declaration

    Swift

    public var heliographicLatitudeOfSolarDiskCenter: Degree { get }
  • The heliographic longitude of the center of the solar disk. It decreases by about 13.2 degrees per day.

    Declaration

    Swift

    public var heliographicLongitudeOfSolarDiskCenter: Degree { get }
  • A synodic rotation cycle of the Sun begins when the heliographic longitude of the solar disk center is 0º.

    Declaration

    Swift

    public static func timeOfStartOfSynodicRotation(rotationNumber C: Int) -> JulianDay

    Parameters

    C

    The rotation number. C = 1 on November 9, 1853.

    Return Value

    The julian day of the start of the cycle.

Equation of Time

  • Compute the equation of time, that is, the difference between the apparent and the mean time. Or, in other words, the difference between the hour angle of the true Sun and the mean Sun.

    Declaration

    Swift

    public func equationOfTime() -> Minute

    Return Value

    The equation of time, in Minute.

Elliptical (Planetary) Details Supplement

  • AA+ provides computation for so-called elliptical planetary details also for the Sun

    Declaration

    Swift

    public lazy var planetaryDetails: KPCAAEllipticalPlanetaryDetails { get set }