jyotisham / jyotisha

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

Is Ritu off by a month? #154

Closed oit-sunil-chaurasia closed 4 months ago

oit-sunil-chaurasia commented 4 months ago

Hi @vvasuki Sir,

While computing panchanga for the day, We are using below logic to know the ritu. It seems to be off by a month or so, Suspecting that I have been using it in wrong way, Please suggest the correct usage if its wrong.

I have tried all 3 below options for eg:date 09/07/2024

rtu_solar = names.NAMES['RTU_NAMES']['sa'][sanscript.DEVANAGARI][panchanga.solar_sidereal_date_sunset.month] rtu_tropical = names.NAMES['RTU_NAMES']['sa'][sanscript.DEVANAGARI][panchanga.tropical_date_sunset.month] rtu_lunar = names.NAMES['RTU_NAMES']['sa'][sanscript.DEVANAGARI][int(ceil(panchanga.lunar_date.month.index))]

Responses of each

Screenshot 2024-07-10 at 1 41 46 PM

Ideally it should be Varsha (DrikPanchanga reference)

Please let me know if any other inputs are required.

Regards, Sunil

vvasuki commented 4 months ago

Should be fixed with https://github.com/jyotisham/jyotisha/commit/0f9eb763d08635dc801fadb81410a2c31772a1af

oit-sunil-chaurasia commented 4 months ago

This worked, thanks a lot @vvasuki