karthikraman / panchangam

Computing the Indian calendar/panchangam and festivals using Swiss ephemeris
86 stars 30 forks source link

Question: Can this be used to calculate tithi form date? #11

Closed praveens96 closed 2 years ago

praveens96 commented 2 years ago

I tried looking at the docs but couldn't find. I want to calculate tithi etc from calendar date. is it possible using this repo?

vvasuki commented 2 years ago

Try https://jyotisham.github.io/jyotisha/software/for_users/

praveens96 commented 2 years ago

thanks for the prompt response, looking at it i think need to use get_tithi function. is it possible to find occurrence of same tithi in a given year? can you please suggest?

vvasuki commented 2 years ago

thanks for the prompt response, looking at it i think need to use get_tithi function. is it possible to find occurrence of same tithi in a given year? can you please suggest?

A few lines of python code should get you that. If you do write such a function, you're welcome to contribute it via a pull request to https://github.com/jyotisham/jyotisha/blob/master/jyotisha/panchaanga/spatio_temporal/annual.py .