Closed ravivarmapm closed 3 years ago
Hello, it looks like a bug. I have found the source of the issue, will fix soon. Thank you for pointing out!
Should be fixed now, in both gpl and agpl versions, can you confirm?
I also released a new swiss ephemeris update thats been pending for a couple weeks.
Thank you for the quick response.
The issue is now fixed.
The method sweph.rise_trans returns incorrect value.
The below code for calculating Sunrise time for 07/07/21 for Hyderabad, IN returns 2459402.535475984 which seem to be incorrect (by almost 30 minutes) when compared to calculation done using other libraries (listed below).
sweph.rise_trans(2459402.2708333335, 0, null, SWEC.SEFLG_SWIEPH, 769, [78.45636, 17.38405, 0], 0, 0); // 2459402.535475984
Using a python library or another Node.js library with the same input values gives correct results. Have verified the correctness of results from these libraries with Sunrise time from few websites.
Using Python Library (https://github.com/astrorigin/pyswisseph)
swe.rise_trans(2459402.2708333335, 0, 78.45636, 17.38405, rsmi = 769) // 2459402.514695216
Using Node.js Library (https://github.com/mivion/swisseph)
What am I missing here?