astronomy icon indicating copy to clipboard operation
astronomy copied to clipboard

Why is the accuracy error of my calculation results so large? Especially the moon.

Open ichingsoft opened this issue 1 year ago • 5 comments

Astronomy Engine is designed to be small, fast, and accurate to within ±1 arcminute. It is based on the authoritative and well-tested models VSOP87 and NOVAS C 3.1.

Is there something wrong with my code? The running environment is node.js .

const Astronomy = require('astronomy-engine');
const observer = new Astronomy.Observer(0, 0, 0);
const date = new Date('2023-01-01T00:00:00Z')
for (let body of ['Sun', 'Moon', 'Mercury', 'Venus', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Pluto']) {
    let equ_2000 = Astronomy.Equator(body, date, observer, false, true);
    console.log(body, equ_2000.ra * 15);
}

The calculated degree of the planet is:

Sun 280.84142445266076 Moon 30.45792396696944
Mercury 295.07476976548236 Venus 299.4006183356455
Mars 66.54558868798762
Jupiter 1.3125988767227075 Saturn 324.8817602609786
Uranus 42.47582030780864
Neptune 353.6326779482502 Pluto 299.8780779863024

But the calculation result of Swiss Ephemeris is:

planet longitude
Sun 280.2838870 Moon 33.6479912 Mercury 293.7019368 Venus 297.3826285 Mars 69.0657735 Jupiter 1.1929697 Saturn 322.4188522 Uranus 45.1476005 Neptune 352.8706151 Pluto 297.6578268

ichingsoft avatar Feb 16 '24 17:02 ichingsoft