Comments (7)
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.
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.
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.
Ah ok! keep up the good work then :)
from aa-js.
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.
i tried it out, looks cool!
from aa-js.
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 (10)
- Integrate Ned Write's cosmology calculator. HOT 1
- Add continuous testing. HOT 1
- Fix failing tests. HOT 2
- Can't consume AA.js from nom HOT 5
- Add a license HOT 3
- How to get geocentric coords of a planet? HOT 4
- MapTo0To360Range causing loss of precision HOT 22
- getRiseSetTransitTimes missing 'new' when converting jdValue to JulianDate HOT 2
- Integrate v2.0+ version of AA+ into existing classes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aa-js.