# Can Julia Create Synastry Table (Astrology Compatibility Calculator)?

**URL:** https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867
**Category:** General Usage
**Tags:** question, package
**Created:** [February 19, 2023, 5:36am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867 "2023-02-19T05:36:06Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [February 19, 2023, 5:36am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/1 "2023-02-19T05:36:06Z")

</div>

Hi all,

I am learning [astro.com](http://astro.com) that can create Synastry, a Synastry is a comparison of natal chart between two people to measure the compatibility, ever wonder why attracted to someone really high? given that person face or body feature is your type, otherwise you won’t be attracted, except air sign which attracted to intelligent over physicality.

When you were born at certain date and time (hour of birth) it becomes a map of your life (natal chart) that determine your behavior likeness, dislikeness, some called destiny, that’s why some people are born that way, the characteristics, the tendency to win or lose, discipline of people even can be measured with this natal chart.

The website can generate the table that gives symbol of conjunction (exact position), sextile, trine, opposition.

I want to make something like this:

given that I will provide the data, if someone for example born on January first, the location of each planet is at certain degree, then it will revolved different for each planets.

 ![Capture d’écran_2023-02-19_12-18-04](https://global.discourse-cdn.com/julialang/original/3X/c/9/c95a5e16235c0294d67807996ffd1ab77db6903b.png)  
 ![Capture d’écran_2023-02-19_12-17-48](https://global.discourse-cdn.com/julialang/original/3X/1/8/182efbbafee4a3129ad2159e126959adf18598c0.png)

That way I learn why Bonnie and Clyde did what they do, combine their chart, this is Romeo and Juliet synastry, and Justin and Sophie Trudeau too, along with George Bush Sr with Barbara Bush, till death do us part indeed.

Hopefully there are packages that can help me to create this. Will help people avoid useless relationship that will not last / short term only. For those who want love. Otherwise, well… your life your choice.

Till the natal chart / table of synastry is enough I then can make the calculator like the one in Magi Helena that tick whether it is “Best Friends and Lovers” or “No real interest / Going Nowhere” or “Heaven and Hell” or " Emotional Attachment"…

Thanks before!

---

<div class="post-metadata">

### Author: ![Amval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amval/32/6217_2.png) [@Amval](https://discourse.julialang.org/u/Amval)
#### Post date: [February 19, 2023, 9:43am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/2 "2023-02-19T09:43:43Z")

</div>

Hum, maybe I am assuming too much, but probably most Julia community members have no domain expertise in this field.

Probably you’d have more luck asking more concrete questions. Anyway, if you want to manipulate tabular data, [Dataframes.jl](https://dataframes.juliadata.org/stable/) is the package you are looking for.

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [February 19, 2023, 10:56am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/3 "2023-02-19T10:56:55Z")

</div>

In Julia there seems to be only astronomy packages, for astrology you could call Python’s [Kerykeion](https://github.com/g-battaglia/kerykeion)

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [February 19, 2023, 1:58pm UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/4 "2023-02-19T13:58:19Z")

</div>

Finding the approximate positions of the planets in the sky at a certain time isn’t too difficult, the equations are straightforward enough and thoroughly documented. Here’s an example (using a package that I started and abandoned many years ago):

```julia

using Astro # it's not registered for good reasons :) 
using Dates

jd = Dates.datetime2julian(now())
ra, decl = geocentric_planet(jd, "Mercury", 
    nut_in_lon(jd), 
    obliquity_high(jd), 
    days_per_second)

dayfraction = radianstime_to_fday(ra)

println("Right Ascension: ", fday_to_hms(dayfraction))
println("Declination: ", rad2deg(decl))

# => Right Ascension: (20, 58, 33.49607695113809)
# => Declination: -18.837652512618497

```

According to [https://theskylive.com/](https://theskylive.com/) the results should be:

 ![Screenshot 2023-02-19 at 13.45.25](https://global.discourse-cdn.com/julialang/original/3X/d/a/dae21fd631e8e1e4f513c40467310393fab59dfb.jpeg)

So the calculations are reasonably close but not identical (or it might be a coincidence…). You wouldn’t want to launch a rocket with these approximations.

However in this case, it doesn’t matter at all, because the results are going to be used in a nonsensical context (astrology). You might just as well calculate the values as `rand() * 24` for all the difference it would make in practice. Nobody would notice, and it would even save a bit of electricity… 🙂

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [February 19, 2023, 2:31pm UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/5 "2023-02-19T14:31:37Z")

</div>

Why the package is not registered? I though Astrology is a science too, planets are bound to gravity. Its Physics…

Great one. I will try to learn it. Thanks @cormullion

---

<div class="post-metadata">

### Author: ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)
#### Post date: [February 19, 2023, 5:14pm UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/7 "2023-02-19T17:14:20Z")

</div>

> [@Freya\_the\_Goddess](#):
>
> I though Astrology is a science too,

😳😳😳

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [February 19, 2023, 6:42pm UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/8 "2023-02-19T18:42:46Z")

</div>

It lacks conclusive testing of its theories against the evidence obtained.

As Prof. Feynman once said: “_It doesn’t matter how beautiful your theory is, it doesn’t matter how smart you are. If it doesn’t agree with experiment, it’s wrong._”

---

<div class="post-metadata">

### Author: ![uniment](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/uniment/32/24532_2.png) [@uniment](https://discourse.julialang.org/u/uniment)
#### Post date: [February 19, 2023, 10:13pm UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/9 "2023-02-19T22:13:21Z")

</div>

> [@Freya\_the\_Goddess](#):
>
> Astrology is a science too

![NoWayDudeNoGIF](https://global.discourse-cdn.com/julialang/original/3X/e/1/e1bfe39ba7d363ff6d48d64a60a635d41ef64d04.gif)

---

<div class="post-metadata">

### Author: ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)
#### Post date: [February 20, 2023, 9:02am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/10 "2023-02-20T09:02:09Z")

</div>

We can also ask statistical questions, like does astrology predict adult compatibility better than e.g. online dating apps? To answer that q, I guess you would need to do the astronomy calculations. I also seem to recall that the inhabitants of Persephone/Rupert wanted help to recalculate Earth’s astrological charts for Rupert! (I won’t say how it ended!)

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [February 20, 2023, 10:41am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/11 "2023-02-20T10:41:37Z")

</div>

Yes, Julia is a great language to create a lot of things. But, I have interest in astrology. Calculate the compatibility, etc. Statistics a bit.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [February 20, 2023, 10:41am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/12 "2023-02-20T10:41:52Z")

</div>

For me it is science.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [February 20, 2023, 10:43am UTC](https://discourse.julialang.org/t/can-julia-create-synastry-table-astrology-compatibility-calculator/94867/13 "2023-02-20T10:43:21Z")

</div>

Besides astrology from western, there is also Bazi and ZWDS from Chinese. And if combined I think quite accurate.
