Skip to content

gagocarrilloedgar/KeplerJS

Repository files navigation

KeplerJS

Kepler solver to compute a celestial body position over the surface of the earth.

npm CodeFactor Grade GitHub repo size NPM

Usage

const {body2latlong} = require("keplerjs");

/**
 * @param {body} //Celesitial body object
 */

body2latlong(body);
posistion:{
    long:{type:Number} // Longitude [grad]
    lat:{type:Number} // latitude [grad]
}

API

  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]
    }

Install

npm i keplerjs

See more

API Documentation with swagger

Contribution

Para contribuir simplemente puedes:

  1. Clone the repo
  2. Create a branch with the name of the feature you want to add
  3. Pull to your branch
  4. Create a pull request to dev so it can be checked and merged

Contact info

You can contact me on LinkedIn

Edgar Gago Carrillo

or at:

edgargc.upc@gmail.com

License

MIT