Module

Sun

Members

# static constant exports.constants

Sun constants, copied from the JPL, for completeness.
Properties:
Name Type Description
equatorialRadius Kilometer Sun's equatorial radius

View Source sun/constants.ts, line 7

Methods

# static getApparentGeocentricEclipticCoordinates(jd) → {EclipticCoordinates}

Apparent Ecliptic Coordinates, that is the geometric ecliptic coordinates, referred to the mean equinox of the date, corrected for the nutation and aberration.
Parameters:
Name Type Description
jd JulianDay The julian day

View Source sun/coordinates.ts, line 128

# static getApparentGeocentricEclipticLatitude(jd) → {Degree}

Apparent Ecliptic Latitude, that is, the geometric latitude of the Sun referred to the mean equinox of the date. See AA+ CAASun::ApparentEclipticLatitude
Parameters:
Name Type Description
jd JulianDay The julian day

View Source sun/coordinates.ts, line 119

Degree

# static getApparentGeocentricEclipticLongitude(jd) → {Degree}

Apparent Ecliptic Longitude, that is, the geometric longitude of the Sun referred to the mean equinox of the date, corrected for the nutation and aberration. See AA+ CAASun::ApparentEclipticLongitude
Parameters:
Name Type Description
jd JulianDay The julian day

View Source sun/coordinates.ts, line 104

Degree

# static getApparentGeocentricEquatorialCoordinates(jd) → {EquatorialCoordinates}

Apparent Equatorial Coordinates, that is the geocentric ecliptic coordinates, referred to the mean equinox of the date, corrected for the nutation and aberration.
Parameters:
Name Type Description
jd JulianDay The julian day

View Source sun/coordinates.ts, line 140

# static getGeocentricEclipticCoordinates(jd, equinox)

Geocentric ecliptic coordinates
Parameters:
Name Type Description
jd JulianDay The julian day
equinox Equinox (optional) The equinox to be used: MeanOfTheDate (default) or StandardJ2000.

View Source sun/coordinates.ts, line 82

EclipticCoordinates

# static getGeocentricEclipticLatitude(jd, equinox) → {Degree}

Geometric Ecliptic Latitude
Parameters:
Name Type Description
jd JulianDay The julian day
equinox Equinox (optional) The equinox to be used: MeanOfTheDate (default) or StandardJ2000.

View Source sun/coordinates.ts, line 55

Degree

# static getGeocentricEclipticLongitude(jd, equinox) → {Degree}

Geometric Ecliptic Longitude
Parameters:
Name Type Description
jd JulianDay The julian day
equinox Equinox (optional) The equinox to be used: MeanOfTheDate (default) or StandardJ2000.

View Source sun/coordinates.ts, line 46

Degree

# static getGeocentricEquatorialCoordinates(jd, equinox)

Geocentric equatorial coordinates
Parameters:
Name Type Description
jd JulianDay The julian day
equinox Equinox (optional) The equinox to be used: MeanOfTheDate (default) or StandardJ2000.

View Source sun/coordinates.ts, line 94

EquatorialCoordinates

# static getGeometricEclipticLongitude(jd) → {Degree}

Low accuracy Geometric Ecliptic Longitude The "low" accuracy (approx 0.01 degree) true geoMETRIC longitude of the Sun referred to the mean equinox of the date. See AA pp 164. This longitude is the quantity required in the calculation of geocentric planetary position.
Parameters:
Name Type Description
jd JulianDay The julian day

View Source sun/coordinates.ts, line 32

Degree

# static getMeanLongitudeReferredToMeanEquinoxOfDate(T) → {Degree}

Mean Longitude referred to the Mean Equinox of the Date See AA p 164
Parameters:
Name Type Description
T JulianCentury The julian century

View Source sun/coordinates.ts, line 20

Degree

# static getRiseTransitSet(jd, geoCoords, geoCoords) → {RiseTransitSet}

The rise, transit and set times of the Sun for a given date. It uses the standard sun altitude, -0.833 degrees.
Parameters:
Name Type Description
jd JulianDay The julian day
geoCoords GeographicCoordinates The geographic coordinates of the observer's location.
geoCoords GeographicCoordinates The observer's location.

View Source sun/coordinates.ts, line 184

# static getVariationGeometricEclipticLongitude(jd) → {Degree}

Variation of the Geometric Ecliptic Longitude
Parameters:
Name Type Description
jd JulianDay The julian day

View Source sun/coordinates.ts, line 148

Degree