Replies: 5 comments 5 replies
-
These functions look great. About correctness, I guess the best thing would be to find some source of test data from a reliable source, and see if we can calculate the same numbers using these functions. Did the Meeus book give any example problems with answers? |
Beta Was this translation helpful? Give feedback.
-
The book doesn't give any examples for parallactic angle calculations. It does say the following about the parallactic angle for the Sun or Moon:
There is one example for calculating χ. It says for the Moon on 1992 April 12 at 0h Dynamical Time, χ = 285.0 °. The TT-UT1 delta for April 1992 was 58.5401 seconds so I believe that 0h TT was approximately 23:59:01 UTC the day prior. The |
Beta Was this translation helpful? Give feedback.
-
Your functions
It might be helpful to know that you can call the function |
Beta Was this translation helpful? Give feedback.
-
I'm definitely happy to contribute something to the project! I haven't delved much into the build process but I'm willing to give it a shot and submit a PR. I'd like to clean up the code slightly first, though, and add a few more comments. Is UTF-8 allowed in source files or should variables like |
Beta Was this translation helpful? Give feedback.
-
I'm trying to keep the C code as portable as possible. It would be a good idea to use ASCII symbols only in the variable names. |
Beta Was this translation helpful? Give feedback.
-
(Related to #253, #278)
Thank you for making this library available!
I wanted to calculate the position and zenith angles for the Moon's illuminated limb and wasn't aware of the
camera
demo which does essentially that. I wrote an experimental demo to perform the calculations based on Meeus' Astronomical Algorithms chapter 48.Their use in my demo:
I'm new to astronomy so I'm not sure if the above is completely correct. However, the resulting zenith angle is similar to the result from
camera
although the angles have different signs. As an example, myluna
demo calculated the zenith angle as 310.466 degrees whilecamera
calculated -49.533 degrees.Any corrections or suggestions for improvement are appreciated!
Beta Was this translation helpful? Give feedback.
All reactions