this post was submitted on 07 Nov 2023
27 points (100.0% liked)

Astronomy

4006 readers
1 users here now

founded 2 years ago
MODERATORS
 

I have been working on a hobby program that calculates the times of moonrise and moonset froma given location. for the formulas i have been using Jean Meeus' Astronomical Algorithms book. So far I have successful been able to calculate the ascension and declination for any given date. Currently I am working on the rising setting and transit (chapter 15). My functions work with his example of Venus, but trying with the moon I do not get accurate results. Using the interpolation method in the book does not seem to add accuracy. Am I missing something? Are there specific considerations for the moon that are not included in the book? I would greatly appreciate any advice given!

top 3 comments
sorted by: hot top controversial new old
[–] ForgetPrimacy@lemmygrad.ml 2 points 1 year ago

I think this is neat!

I have no answer but I want to help the post gain attention by putting a comment in here.

I would be super interested in the answer as well, though again I have no idea what it might be or even what factors go in to the equation. I may be off in my assumption (and you may have already accounted for it) but I imagine the calculations for a satellite orbiting the body whose horizon is the subject must be different by at least one term from the calculations of governing a body orbiting the same mass as the horizon-owning-body

[–] paul0207@lemmy.sdf.org 2 points 1 year ago (1 children)

Hello, are you accounting for parallax and for atmospheric refraction?

[–] tronx4002@lemmy.world 2 points 1 year ago

Refraction yes, but not parallax. I will add that in. I appreciate the reply!