/*****************************************************************************************************************/ import type { GeographicCoordinate, Matrix3, ReferenceFrame } from './common'; /*****************************************************************************************************************/ /** * * getFrameBiasMatrix() * * Resolves the frame bias matrix B of IAU 2000, e.g., the fixed rotation from the International * Celestial Reference System (ICRS), which a modern catalogue coordinate is referred to, to the * mean equator and equinox of J2000.0, which the precession of the equinoxes is referred from, as * is defined by the iauBi00 and iauBp00 routines of the IAU SOFA library: * * B = R1(−δε₀) · R2(δψ₀ sin ε₀) · R3(δα₀) * * where δα₀ is the offset of the ICRS origin of right ascension from the mean equinox of * J2000.0, and δψ₀ and δε₀ are the offsets of the ICRS pole from the mean pole of J2000.0 in * longitude and in obliquity, respectively, referred to the mean obliquity of the ecliptic at * J2000.0, ε₀. * * N.B. The frame bias is fixed, e.g., it is not a function of the date, and is of the order of * 20 mas, such that the matrix differs from the identity by less than 1e-7 in each element. * * N.B. The transpose of the matrix is its inverse, e.g., Bᵀ rotates the mean equator and equinox * of J2000.0 back into the ICRS. * * @returns The 3×3 frame bias matrix, in row-major order. * */ export declare function getFrameBiasMatrix(): Matrix3; /*****************************************************************************************************************/ /** * * getPrecessionMatrix() * * Resolves the precession matrix P of IAU 2006, e.g., the rotation from the mean equator and * equinox of J2000.0 to the mean equator and equinox of the date, as the product of the passive * rotations of the frame through the equatorial precession angles ζ, z and θ of P03 (Capitaine * et al. 2003): * * P = R3(−z) · R2(θ) · R3(−ζ) * * N.B. The matrix is referred to the mean equator and equinox of J2000.0, and not to the ICRS, * e.g., a catalogue coordinate is carried by the frame bias matrix first, as P · B. * * N.B. The transpose of the matrix is its inverse, e.g., Pᵀ carries a coordinate from the mean * equator and equinox of the date back to the mean equator and equinox of J2000.0. * * @param datetime - The date to resolve the precession matrix for. * @returns The 3×3 precession matrix, in row-major order. * */ export declare function getPrecessionMatrix(datetime: Date): Matrix3; /*****************************************************************************************************************/ /** * * getNutationMatrix() * * Resolves the nutation matrix N, e.g., the rotation from the mean equator and equinox of the date * to the true equator and equinox of the date, as the product of the passive rotations of the * frame through the mean obliquity of the ecliptic, ε₀, and the nutation in longitude, Δψ, and in * obliquity, Δε, of the date, as is defined by the iauNumat routine of the IAU SOFA library: * * N = R1(−(ε₀ + Δε)) · R3(−Δψ) · R1(ε₀) * * where R1(ε₀) carries the mean equator of the date onto the ecliptic, R3(−Δψ) carries the mean * equinox of the date to the true equinox of the date along the ecliptic, and R1(−(ε₀ + Δε)) * carries the ecliptic onto the true equator of the date. * * N.B. The matrix is referred to the mean equator and equinox of the date, e.g., a catalogue * coordinate is carried by the frame bias and precession matrices first, as N · P · B. * * N.B. The transpose of the matrix is its inverse, e.g., Nᵀ carries a coordinate from the true * equator and equinox of the date back to the mean equator and equinox of the date. * * @param datetime - The date to resolve the nutation matrix for. * @returns The 3×3 nutation matrix, in row-major order. * */ export declare function getNutationMatrix(datetime: Date): Matrix3; /*****************************************************************************************************************/ /** * * getEquatorialToGalacticMatrix() * * Resolves the equatorial to galactic matrix G, e.g., the fixed rotation from the International * Celestial Reference System (ICRS) to the galactic frame, as is defined by the Hipparcos * catalogue (ESA 1997, Vol. 1, §1.5.3) and resolved by the iauIcrs2g routine of the IAU SOFA * library, as the product of the passive rotations of the frame: * * G = R3(90° − θ) · R1(90° − δP) · R3(αP + 90°) * * where αP and δP are the right ascension and declination of the north galactic pole, and θ is * the galactic longitude of the north celestial pole. * * N.B. The galactic frame is fixed, e.g., it is not a function of the date, and is referred to the * ICRS, e.g., a catalogue coordinate is carried into it directly. * * N.B. The transpose of the matrix is its inverse, e.g., Gᵀ carries a galactic coordinate back * into the ICRS. * * @returns The 3×3 equatorial to galactic matrix, in row-major order. * */ export declare function getEquatorialToGalacticMatrix(): Matrix3; /*****************************************************************************************************************/ /** * * getBiasPrecessionNutationMatrix() * * Resolves the bias-precession-nutation matrix NPB of IAU 2006/2000A, e.g., the rotation from the * International Celestial Reference System (ICRS), which a modern catalogue coordinate is referred * to, to the true equator and equinox of the date, as the product of the nutation matrix N, the * precession matrix P and the frame bias matrix B, as is defined by the iauPnm06a routine of the * IAU SOFA library: * * NPB = N · P · B * * where B carries the ICRS to the mean equator and equinox of J2000.0, P carries the mean equator * and equinox of J2000.0 to the mean equator and equinox of the date, and N carries the mean * equator and equinox of the date to the true equator and equinox of the date. * * N.B. The third row of the matrix is the direction of the celestial intermediate pole (CIP) of * the date, referred to the ICRS. * * N.B. The transpose of the matrix is its inverse, e.g., NPBᵀ carries a coordinate from the true * equator and equinox of the date back to the ICRS. * * @param datetime - The date to resolve the bias-precession-nutation matrix for. * @returns The 3×3 bias-precession-nutation matrix, in row-major order. * */ export declare function getBiasPrecessionNutationMatrix(datetime: Date): Matrix3; /*****************************************************************************************************************/ /** * * getEquatorialToEclipticMatrix() * * Resolves the equatorial to ecliptic matrix E, e.g., the rotation from the true equator and * equinox of the date to the true ecliptic and equinox of the date, as the passive rotation of the * frame about the x-axis, e.g., the direction of the true equinox of the date, which is common to * both, through the true obliquity of the ecliptic of the date, ε: * * E = R1(ε) * * where ε is the mean obliquity of the ecliptic of IAU 2006 corrected for the nutation in * obliquity, e.g., ε₀ + Δε. * * N.B. The matrix is referred to the true equator and equinox of the date, e.g., a catalogue * coordinate is carried by the bias-precession-nutation matrix first, as E · N · P · B. * * N.B. The transpose of the matrix is its inverse, e.g., Eᵀ carries an ecliptic coordinate of the * date back to the true equator and equinox of the date. * * @param datetime - The date to resolve the equatorial to ecliptic matrix for. * @returns The 3×3 equatorial to ecliptic matrix, in row-major order. * */ export declare function getEquatorialToEclipticMatrix(datetime: Date): Matrix3; /*****************************************************************************************************************/ /** * * getEquatorialToHorizontalMatrix() * * Resolves the equatorial to horizontal matrix H, e.g., the transformation from the true equator * and equinox of the date to the horizontal frame of the observer, of (north, east, zenith), as * the product of the passive rotations of the frame through the Local Apparent Sidereal Time, * LAST, and the colatitude of the observer, 90° − φ, followed by the reflection of the x-axis, F: * * H = F · R2(90° − φ) · R3(LAST) * * where R3(LAST) carries the true equinox of the date to the meridian of the observer, R2(90° − φ) * carries the celestial pole to the zenith of the observer, e.g., onto a frame of (south, east, * zenith), and F = diag(−1, 1, 1) carries the south point to the north point. * * N.B. The horizontal frame of (north, east, zenith) is left-handed, e.g., the azimuth is measured * from the north point towards the east point, and so the matrix is a reflection, with a * determinant of −1, and not a rotation. * * N.B. The matrix is referred to the true equator and equinox of the date, e.g., a catalogue * coordinate is carried by the bias-precession-nutation matrix first, as H · N · P · B, and it * does not correct for the atmospheric refraction or the diurnal parallax of the target. * * N.B. The transpose of the matrix is its inverse, e.g., Hᵀ carries a horizontal coordinate back * to the true equator and equinox of the date. * * @param datetime - The date to resolve the equatorial to horizontal matrix for. * @param observer - The geographic coordinate of the observer. * @returns The 3×3 equatorial to horizontal matrix, in row-major order. * */ export declare function getEquatorialToHorizontalMatrix(datetime: Date, observer: GeographicCoordinate): Matrix3; /*****************************************************************************************************************/ /** * * getFrameTransformationMatrix() * * Resolves the transformation matrix M from one reference frame to another, e.g., the matrix that * carries the cartesian coordinate of a target referred to the first frame into the second, as is * routed through the International Celestial Reference System (ICRS): * * M = M(to) · M(from)ᵀ * * where M(frame) is the matrix from the ICRS to the frame, e.g., I for the ICRS, P · B for the * mean equator and equinox of the date (MOD), N · P · B for the true equator and equinox of the * date (TOD), E · N · P · B for the true ecliptic and equinox of the date, G for the galactic * frame, and H · N · P · B for the horizontal frame of the observer. * * N.B. The transformation between a reference frame and itself is the identity, e.g., it is not * routed through the ICRS, and so it takes neither the datetime nor the observer to resolve. * * N.B. The horizontal frame of (north, east, zenith) is left-handed, and so a transformation to or * from it is a reflection, with a determinant of −1, whereas every other is a rotation. * * @param from - The reference frame to transform from. * @param to - The reference frame to transform to. * @param datetime - The date to resolve the transformation matrix for. * @param observer - The geographic coordinate of the observer, for the horizontal frame. * @returns The 3×3 transformation matrix from the one frame to the other, in row-major order. * */ export declare function getFrameTransformationMatrix(from: ReferenceFrame, to: ReferenceFrame, datetime: Date, observer?: GeographicCoordinate): Matrix3; /*****************************************************************************************************************/