/*****************************************************************************************************************/ import type { CartesianCoordinate, EclipticCoordinate, EquatorialCoordinate, GeographicCoordinate } from './common'; /*****************************************************************************************************************/ export declare const SOLAR_TROPICAL_YEAR: 365.242189; /*****************************************************************************************************************/ /** * * getSolarMeanAnomaly() * * The Sun's mean anomaly is the angle between perigee and the Sun's current position. * * @param datetime - The date to calculate the Sun's mean anomaly for. * @returns The Sun's mean anomaly at the given date. * */ export declare function getSolarMeanAnomaly(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarEquationOfCenter() * * The equation of center is the difference between the mean geometric longitude * and the mean anomaly. * * @param datetime - The date to calculate the Sun's equation of center for. * @returns The Sun's equation of center at the given date. */ export declare function getSolarEquationOfCenter(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarMeanGeometricLongitude() * * The mean geometric longitude for the Sun is the angle between the perihelion * and the current position of the Sun, as seen from the centre of the Earth. * * @param datetime - The date to calculate the Sun's true geometric longitude for. * @returns The Sun's true geometric longitude at the given date. * */ export declare function getSolarMeanGeometricLongitude(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarTrueAnomaly() * * The true anomaly for the Sun is the angle between the perihelion and the * current position of the Sun, as seen from the centre of the Earth, corrected * for the equation of center. * * @param datetime - The date to calculate the Sun's true anomaly for. * @returns The Sun's true anomaly at the given date. * */ export declare function getSolarTrueAnomaly(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarTrueGeometricLongitude() * * The true geometric longitude for the Sun is the angle between the perihelion * and the current position of the Sun, as seen from the centre of the Earth, * corrected for the equation of center. * * @param datetime - The date to calculate the Sun's true geometric longitude for. * @returns The Sun's true geometric longitude at the given date. * */ export declare function getSolarTrueGeometricLongitude(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarEclipticLongitude() * * The ecliptic longitude for the Sun is the angle between the perigee and * the current position of the Sun, as seen from the centre of the Earth, * corrected for the equation of center and the Sun's ecliptic longitude at * perigee at the date. * * @param datetime - The date to calculate the Sun's ecliptic longitude for. * @returns The Sun's ecliptic longitude at the given date. * */ export declare function getSolarEclipticLongitude(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarGeometricEclipticCoordinate() * * The geometric ecliptic coordinates of the Sun are the Sun's position as seen from the centre of * the Earth, referred to the mean ecliptic and equinox of the date, e.g., the place of the Sun * before the corrections for the nutation and for the aberration of light are applied. * * @param datetime - The date to calculate the Sun's geometric ecliptic coordinates for. * @returns The Sun's geometric ecliptic coordinates at the given date. */ export declare function getSolarGeometricEclipticCoordinate(datetime: Date): EclipticCoordinate & { R: number; }; /*****************************************************************************************************************/ /** * * getGeometricSolarVector() * * The geometric position of the Sun from the centre of the Earth, referred to the mean equator and equinox of * J2000.0, e.g., the geometric ecliptic coordinate of the Sun of the VSOP87 theory, rotated by the mean obliquity * of the ecliptic of the date into the mean equator and equinox of the date, and carried back to J2000.0 by the * transpose of the precession matrix of IAU 2006, R3(ζ)·R2(−θ)·R3(z), which refers both the precession of the * equator and the precession of the ecliptic back to J2000.0. * * @param datetime - The date to resolve the position of the Sun for. * @returns The geocentric position of the Sun (in astronomical units). * */ export declare function getGeometricSolarVector(datetime: Date): Required; /*****************************************************************************************************************/ /** * * getBarycentricSolarVector() * * The position of the Sun about the barycentre of the Solar System, referred to the mean equator and equinox of * J2000.0, e.g., the reflex of the heliocentric positions of the giant planets, weighted by the ratio of the mass * of each to the mass of the Sun, which displaces the Sun by up to ~0.01 astronomical units, and moves it at up to * ~16 metres per second, as eraEpv00 of the IAU Standards of Fundamental Astronomy (SOFA) resolves the barycentric * place of the Earth from its heliocentric place. * * N.B. The terrestrial planets displace the Sun by less than a thousandth of the giant planets, and so they are * neglected. * * @param datetime - The date to resolve the position of the Sun for. * @returns The barycentric position of the Sun (in astronomical units). * */ export declare function getBarycentricSolarVector(datetime: Date): Required; /*****************************************************************************************************************/ /** * * getSolarEclipticCoordinate() * * The ecliptic coordinates of the Sun are the Sun's position in the sky as seen * from the centre of the Earth, corrected for the equation of center and the Sun's * ecliptic longitude at perigee at the epoch. * * @param datetime - The date to calculate the Sun's ecliptic coordinates for. * @returns The Sun's ecliptic coordinates at the given date. */ export declare function getSolarEclipticCoordinate(datetime: Date): EclipticCoordinate & { R: number; }; /*****************************************************************************************************************/ /** * * getSolarEquatorialCoordinate() * * The equatorial coordinate of the Sun is the standard equatorial coordinate * of the Sun, as seen from the centre of the Earth, corrected for the equation * of center and the Sun's ecliptic longitude at perigee at the epoch. * * @param datetime - The date to calculate the Sun's equatorial coordinate for. * @returns The Sun's equatorial coordinate at the given date. * */ export declare function getSolarEquatorialCoordinate(datetime: Date): EquatorialCoordinate; /*****************************************************************************************************************/ /** * * getEclipticPlane() * * @param date - The date to calculate the ecliptic plane for. * @returns The ecliptic plane at the given date. * */ export declare function getEclipticPlane(date: Date): EquatorialCoordinate[]; /*****************************************************************************************************************/ /** * * getSolarAngularDiameter() * * The Sun's angular diameter is the distance between the Sun's centre and the Sun's limb. * * @param datetime - The date to calculate the Sun's angular diameter for. * @returns The Sun's angular diameter in degrees * */ export declare function getSolarAngularDiameter(datetime: Date): number; /*****************************************************************************************************************/ /** * * getSolarDistance() * * @param datetime - The date to calculate the distance to the Sun for. * @returns The distance to the Sun in metres forthe given date. */ export declare function getSolarDistance(datetime: Date): number; /*****************************************************************************************************************/ /** * * getHeliocentricJulianDate() * * Calculates the heliocentric Julian date of an observation, e.g., the Julian date at which the * light of the target would have arrived at the center of the Sun, which does not carry the * observer about the Sun over the year. * * The observer is displaced from the Sun, and so the light of a target arrives earlier or later * than it does at the Sun, by the displacement resolved along the direction to the target, which * reaches ~499 seconds for a target along the line to the Sun, e.g., the heliocentric Julian date * precedes the Julian date by it for a target behind the Sun, follows the Julian date by it for a * target opposite the Sun, and is the Julian date for a target perpendicular to the Sun. * * N.B. The displacement is the geometric position of the Sun, referred to the mean equator and * equinox of J2000.0, and so the coordinate of the target is taken to be referred to it too, e.g., * as a catalogue coordinate of the ICRS is to within ~0.02 arcseconds. * * N.B. The heliocentric Julian date is of the time scale of the given date, e.g., UTC, and so it * is not continuous across a leap second. * * @param datetime - The date and time of the observation. * @param target - The equatorial coordinate of the target that was observed. * @returns The heliocentric Julian date of the observation. * */ export declare function getHeliocentricJulianDate(datetime: Date, target: EquatorialCoordinate): number; /*****************************************************************************************************************/ /** * * getBarycentricJulianDate() * * Calculates the barycentric Julian date of an observation, e.g., the Julian date at which the * light of the target would have arrived at the barycenter of the solar system, which is an * inertial reference and so does not carry the observer about the Sun over the year. * * The observer is displaced from the barycenter, and so the light of a target arrives earlier or * later than it does at the barycenter, by the displacement resolved along the direction to the * target, which reaches ~499 seconds for a target along the line to the Sun. * * N.B. The displacement is resolved to the center of the Sun, and not to the barycenter of the * solar system, which the planets displace the Sun from by up to ~2 light seconds, and so this is * accurate to that, and not to the sub-second the timing of a transit calls for. * * @param datetime - The date and time of the observation. * @param target - The equatorial coordinate of the target that was observed. * @returns The barycentric Julian date of the observation. * */ export declare function getBarycentricJulianDate(datetime: Date, target: EquatorialCoordinate): number; /*****************************************************************************************************************/ /** * * The geometric altitude of the centre of the Sun at which it rises and sets (in degrees), e.g., * the standard almanac convention of the ~16 arcminute semidiameter of the Sun and the standard * ~34 arcminutes of refraction at the horizon, at which the upper limb of the Sun appears to * touch the horizon. * */ export declare const SOLAR_STANDARD_ALTITUDE_OF_RISE_AND_SET: -0.8333; /*****************************************************************************************************************/ /** * * getSolarNoon() * * The solar noon is the meridian transit of the Sun, e.g., the instant at which the hour angle * of the Sun vanishes, nearest the mean solar noon of the given date. The transit is resolved * for every observer, including an observer in a polar day or a polar night, for whom the Sun * still crosses the local meridian. * * @param datetime - The date to resolve the solar noon for, with the day taken in UTC. * @param observer - The geographic coordinate of the observer. * @returns The solar noon of the given date for the observer. * */ export declare function getSolarNoon(datetime: Date, observer: GeographicCoordinate): Date; /*****************************************************************************************************************/ /** * * getSunrise() * * The sunrise is the instant at which the upper limb of the Sun appears to touch the horizon as * it rises, e.g., the standard almanac convention at which the geometric altitude of the centre * of the Sun reaches the standard altitude of -0.8333°, which carries the semidiameter of the * Sun and the standard refraction at the horizon, and which is depressed below the astronomical * horizon by the elevation of the observer. * * N.B. The refraction within the standard altitude is a fixed convention, and so the sunrise is * resolved against the geometric altitude of the Sun, and is not corrected for the refraction * of the atmospheric conditions of the observation. * * @param datetime - The date to resolve the sunrise for, with the day taken in UTC. * @param observer - The geographic coordinate of the observer. * @returns The sunrise of the given date for the observer, or null where the Sun does not cross * the horizon, e.g., for an observer in a polar day or a polar night. * */ export declare function getSunrise(datetime: Date, observer: GeographicCoordinate): Date | null; /*****************************************************************************************************************/ /** * * getSunset() * * The sunset is the instant at which the upper limb of the Sun appears to touch the horizon as * it sets, e.g., the standard almanac convention at which the geometric altitude of the centre * of the Sun reaches the standard altitude of -0.8333°, which carries the semidiameter of the * Sun and the standard refraction at the horizon, and which is depressed below the astronomical * horizon by the elevation of the observer. * * N.B. The refraction within the standard altitude is a fixed convention, and so the sunset is * resolved against the geometric altitude of the Sun, and is not corrected for the refraction * of the atmospheric conditions of the observation. * * @param datetime - The date to resolve the sunset for, with the day taken in UTC. * @param observer - The geographic coordinate of the observer. * @returns The sunset of the given date for the observer, or null where the Sun does not cross * the horizon, e.g., for an observer in a polar day or a polar night. * */ export declare function getSunset(datetime: Date, observer: GeographicCoordinate): Date | null; /*****************************************************************************************************************/