Giter Club home page Giter Club logo

Comments (7)

onekiloparsec avatar onekiloparsec commented on August 18, 2024

Sorry the README is misleading. I am still not entirely convinced of the export method I've chosen, but since you've closed the issue, I guess you found your way.

The standard way of importing is now:

import aa from 'astronomical-algorithms'
const jd = aa.julianday.getJulianDay(new Date()),
const coords = aa.moon.equatorialCoordinates(jd)

from aa-js.

danieledep avatar danieledep commented on August 18, 2024

Yes the one you wrote could be a solution, i made it working also with something like this

import * as aa from 'astronomical-algorithms'
import { julianday } from 'astronomical-algorithms/dist/julianday.js'

btw, as a offtopic question.. will you add other solar planets? because I was interested in mars coordinates.

from aa-js.

onekiloparsec avatar onekiloparsec commented on August 18, 2024

btw, as a offtopic question.. will you add other solar planets? because I was interested in mars coordinates.

:-) Me too. It's always a matter of priorities. But okay, I'll put Mars on top.

from aa-js.

danieledep avatar danieledep commented on August 18, 2024

Ah ok! keep up the good work then :)

from aa-js.

onekiloparsec avatar onekiloparsec commented on August 18, 2024

I just published version 1.1(.1) with some basics of Mars. But it is UNTESTED for now.

Be careful too: I've normalized the order of parameters of some functions (lat/lng).

from aa-js.

danieledep avatar danieledep commented on August 18, 2024

i tried it out, looks cool!

from aa-js.

onekiloparsec avatar onekiloparsec commented on August 18, 2024

Hi. Mars details were wrong, even if coordinates were correct. This is now updated on HEAD with a unit test. Working on Jupiter right now, and others will follow.

from aa-js.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.