7yl4r / pulsarMap

:sparkles: custom interstellar pioneer/voyager-style pulsar mapping
http://7yl4r.github.io/pulsarMap/
27 stars 7 forks source link

Calculating the direction in degrees #6

Closed Prithwis-2023 closed 2 years ago

Prithwis-2023 commented 2 years ago

I have a long lasting question about how to determine the angle from the line to the galactic center using the data. Please help!

7yl4r commented 2 years ago

It has been a very long time since I wrote this code, but it looks like the galactic lat, lon are included in the database.

https://github.com/7yl4r/pulsarMap/blob/a1b316e6b4a0411aa66ebd274d9e628b2fbdf837/js/drawMap.js#L184-L185

So to get the angle you just use trig: angle = arctan(opposite/adjacent).

Prithwis-2023 commented 2 years ago

Yeah actually i found it and it's actually based on the galactic longitude.

7yl4r commented 2 years ago

👍

Prithwis-2023 commented 2 years ago

nice to talk to you! can you share your email for further communication?

On Mon, Aug 15, 2022 at 8:09 PM Tylar @.***> wrote:

👍

— Reply to this email directly, view it on GitHub https://github.com/7yl4r/pulsarMap/issues/6#issuecomment-1216092286, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFQFP44PBXV732WTLXCV23VZMA73ANCNFSM56NE2SIQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards, Prithwis Whatsapp : +91 7044066618

7yl4r commented 2 years ago

email@tylar.info

Prithwis-2023 commented 2 years ago

Thank you for the email.

On Tue 11 Oct, 2022, 6:42 PM Tylar, @.***> wrote:

@.***

— Reply to this email directly, view it on GitHub https://github.com/7yl4r/pulsarMap/issues/6#issuecomment-1274666887, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFQFP3C4FU7JRH7VVCOXFDWCVRUHANCNFSM56NE2SIQ . You are receiving this because you authored the thread.Message ID: @.***>