jyotisham / jyotisha

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

Output panchanga in csv format #151

Closed code4passion closed 1 month ago

code4passion commented 1 month ago

Hello, I want to create a panchage in csv format with date and Features of panchanga as columns

Date, Tithi, nakshatra, yoga, karana, varna, moon_rashi, sun_rashi,paksha, panchanga_siddhaanta, ayanamsha, ritu, maasa, moon_postion, sun_postion, etc

Here date can be specific instance of time in iso format. Eg 2020-03-20T14:28:23.382748

I am new to concepts on panchana. Donot have much domain knowledge. 1) Kindly let me know what all features i can use as columns 2) Will all values be single valued for specfic cell? If not we will have to split rows into multiple rows 3) Any code pointer to where i can start this? I was using

 dt =  datetime.datetime.now()
  panchaanga = daily.DailyPanchaanga.from_city_and_julian_day(
    city=chennai, julian_day=time.utc_gregorian_to_jd(dt))

Sample output https://gist.github.com/code4passion/a03f812dcc06438410e7dceab8b2c2c6

vvasuki commented 1 month ago

Just noticed that the docs were broken - now fixed. Please refer to https://jyotisham.github.io/jyotisha/software/for_users/ . Just emit the panchAnga object you get however you like. Following through calls at jyotisha/panchaanga/writer/generation_project/summary.py would help. see example outputs at https://jyotisham.github.io/jyotisha/output/Hampi/MULTI_NEW_MOON_SIDEREAL_MONTH_ADHIKA__CHITRA_AT_180/gregorian/1300s/1310s/1311_summary/