GitHub

Swiss Ephemeris Returns 6 Floats. Your App Needs a Chart. (opens in new tab)

Covered by DEV CommunityDiscussed on DEV

Every astrology backend on earth runs on Swiss Ephemeris. It is accurate to the arcsecond and has earned three decades of trust. Now look at what it hands back. import swisseph as swe xx, ret = swe.calc_ut(jd, swe.MOON, swe.FLG_SIDEREAL) moon_lon = xx[0] # (281.43, -4.21, 0.0026, 13.17, 0.58, -0.00003) Six floats. Position and speed. That is the entire API for a body, and it is where Swiss stops and your real work begins. Swiss computes positions, not astrology There is no nakshatra function....

Read the original article
Sign in to keep reading the full article.

Covered in 1 article

DEV Community·
Discussed on DEV
Feeds

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help