siderust-js
ActiuJavaScript and WebAssembly bindings for Siderust astronomy: observers, ephemerides, coordinate transforms, and event searches.
0 estrelles
0 forks
JavaScript
AGPL-3.0
Actualitzat avui
Per què existeix
siderust-js exposes the Siderust astronomy stack to JavaScript through synchronized Node and Web packages. Its public API stays strongly typed by requiring qtty-js and tempoch-js quantity and time objects at the boundary.
Funcionalitats clau
- Node package: @siderust/siderust
- Browser/WASM package: @siderust/siderust-web
- Observer models, ephemerides, and transforms
- Altitude, azimuth, crossing, and culmination search
- Strict interop with qtty-js and tempoch-js types
Primers passos
npm install @siderust/siderust @siderust/qtty @siderust/tempoch
const { Quantity } = require('@siderust/qtty');
const { JulianDate } = require('@siderust/tempoch');
const { Observer, bodyAltitudeAt } = require('@siderust/siderust');
const observer = new Observer(
new Quantity(-17.8925, 'Degree'),
new Quantity(28.7543, 'Degree'),
new Quantity(2396, 'Meter'),
);
const altitude = bodyAltitudeAt('Sun', observer, new JulianDate(2451545.0).toModifiedJulianDate());
console.log(altitude.value, altitude.unit); Contribuir
Donem la benvinguda a les contribucions! Aquí tens com pots ajudar:
- 1 Fes un fork del repositori i crea la teva branca des de main
- 2 Fes els teus canvis i afegeix tests si s'escau
- 3 Assegura't que tots els tests passen amb cargo test
- 4 Envia un pull request amb una descripció clara
Llicència
Aquest projecte està llicenciat sota la llicència AGPL-3.0. Consulta el fitxer LICENSE per a més detalls.
Enllaços ràpids
Etiquetes
javascript wasm node browser astronomy ephemeris bindings