andrmoel / astronomy-bundle-js

This library provides tools and methods for astronomical calculations. With this bundle it is possible to calculate the position of moon, sun and planets and several coordinate systems. For a higher accuracy, several corrections, like nutation and precision, were taken into account. It is also possible to calculate rise, set and culmination events for celestial objects.
42 stars 9 forks source link

Question about Solar Eclipse data - magnitude and obscuration don't seem correct unless I'm misunderstanding #78

Open philmosby opened 4 weeks ago

philmosby commented 4 weeks ago

Hey guys, love the project. It doesn't it appear that it's getting much in the way of updates, but figured I'd post anyway. I notice that when I use the Solar eclipse module ... while it does seem to pick up whether an eclipse will be visible or not for a location, the magnitude and obscuration data that it returns don't seem logical. For instance, in the case of the April 2024 eclipse, when I search for:

Lat: 30.758 Lng: -98.228
Eclipse Time: 2024-04-08 18:18:00 (This is Burnet, TX, directly on the path of totality)

I get the following results:

{eclipseType: 'partial', magnitude: 0.08857825001101263, moonSunRatio: 1.039306501577669, obscuration: 0.03152965694820272}

Magnitude and obscuration should be much higher and eclipseType should be "Total".

I've tried adjusting my time of interest to be closer to the moment of totality with no change in results. Possible I'm just misunderstanding how the Eclipse function works, but if not then I think there's something a little off here.

Thanks very much again for such a great project. Appreciate any tips on how to get more accurate results here.