shashwatak / satellite-js

Modular set of functions for SGP4 and SDP4 propagation of TLEs.
MIT License
902 stars 145 forks source link

Detail units in README #109

Closed tempranova closed 2 years ago

tempranova commented 2 years ago

Hello! I wasn't sure about making an issue for this, but I am working to create a 3D map and wondering what specific unit the "height" measurement is. I get values like 800, etc, but this surely isn't meters? Or is this from some base height that I'm not aware of -- 800 meters is not nearly enough for a satellite in orbit? Thanks!

thkruz commented 2 years ago

I assume you figured it out, but for future people's reference, the azimuth and elevation are in radians and the height is in kilometers. It is not in the readme (maybe it should be), but is in the type.d.ts document: https://github.com/shashwatak/satellite-js/blob/3ca50b041584a489744b83c375c68ffb62c30e34/types/index.d.ts#L194-L198