jyotisham / jyotisha

Python tools for the astronomical / astrological vedAnga of Hindus
MIT License
88 stars 52 forks source link

Pradosha and Amavasya dates seems bit off while pulling Festival along with Panchanga #158

Open oit-sunil-chaurasia opened 3 weeks ago

oit-sunil-chaurasia commented 3 weeks ago

Hi @vvasuki Sir,

While pulling dates for vrats, we noticed two instances where the dates seem slightly off compared to the Drik Panchanga. Could you please help me understand whether this is due to a logic issue or something else?

  1. We have Soma pradosha on 30 Sep 2024, where as in Drik, its Ravi Pradosha on 29 Sep 2024, Similary on 10 feb 2025 (SS attached)
  2. Pausha amavasya should happen in jan but the dates are coming as 9 feb 2024.(SS attached)

Please feel free let me know if any other input is required here.

Screenshot 2024-08-21 at 10 22 28 AM Screenshot 2024-08-21 at 10 23 18 AM
vvasuki commented 3 weeks ago

@karthikraman is better placed to answer this.

karthikraman commented 3 weeks ago
  1. For Pradosha, the reckoning is based on trayodashi at sunset, and if it's there on two days, it must be celebrated on the second. I could dig up the shaastra-vakyams too if needed. 9th Feb seems wrong, since there is no trayodashi at sunset.
  2. This seems like a purNimAnta/amAnta thing?
oit-sunil-chaurasia commented 3 weeks ago
  1. The date is 9th feb 2025 in Drik for pradosha, Trayodashi starts at 7:25PM on that day, by any chance you referred 9th feb 2024?
  2. It can be possible as it seems completely a month off, may be indexing issue?
karthikraman commented 2 weeks ago
  1. Yes, 1925 is after sunset in all of Bharat?
  2. No issue, amanta pausha amAvAsyA is purNimAnta mAgha amAvAsyA, no?
oit-sunil-chaurasia commented 1 week ago
  1. For pradosha on 9th Feb, It seems like Drik data is wrong, as you said there is no Trayodashi on 9th, now it doesn't match as per the logic. Also what i have observed is that, if Trayodashi happens before sunset, that day is considered for pradosha else next day.

  2. What can be the fix for amavasya? As I am relying on the exact naming of the amavsya given by repo?

karthikraman commented 5 days ago
  1. You are right
  2. You could have an alternate mapping for purnimanta month names...