keplerjs
v1.0.8
Published
Kepler solver to compute a celestial body position over the surface of the earth.
Downloads
19
Maintainers
Readme
KeplerJS
Kepler solver to compute a celestial body position over the surface of the earth.
Install
npm i keplerjs
Inputs
const earth = {
a // Semi major axis [UA]
e // eccentricity [adim]
i // inclination [deg]
om // argument ot the perilelion [deg]
w // right ascension [deg]
ma // mean anomaly [deg]
}
Usage
const {body2latlong} = require("keplerjs");
/**
* @param {body} //Celesitial body object
*/
body2latlong(body);
Outputs
posistion:{
long:{type:Number} // Longitude [grad]
lat:{type:Number} // latitude [grad]
}