santhoshn / panchanga

A program to calculate Panchanga at any given time.
41 stars 21 forks source link

Request for some more info #1

Open kaflek opened 7 years ago

kaflek commented 7 years ago

The coding provided to calculate panchanga is very useful. I used the formulae used in this coding to calculate Tithi, Naksyatra, Yoga, Karan, Rashi in my app for android. Many many thanks for the coding.

I am writing you to request some more information/ formula to calculate the chandra masa(चान्द्र मास) for each tithi, e.g. Baishakha (बैशाष) , Jestha (जेष्ठ) etc. of Chandra Masa/Tithi to be used like 'Jestha Sukla Pratipada' (जेष्ठ शुक्ल प्रतिपदा) & so on. Can you please provide me the formula to calculate this Month (चन्द्र मास) - (if you are still involved in such programming), or suggest me any other links/websites that provides such information.

Thanks in advance

santhoshn commented 7 years ago

I am glad to know that you found this Panchanga calculator useful. For finding Chandra Masa(In case if you still haven't figured out), you may find this information below useful:

Chandramana mAsa is named according to the Nakshatra prevailing in the respective Poornima day of the month as follows: Chaitra Poornima---- Chitra Nakshatra--- -Chaitra mAsa Vaishaka Poornima---- Visaka Nakshatra--- -Vaishaka mAsa Jyeshtha Poornima---- Jyeshta Nakshathra-- --Jyeshta mAsa Ashadha Poornima---- P. Ashadha or U. Ashadha Nakshatra--- --Ashadha mAsa Sravana Poornima---- --Sravana Nakshatra--- --Sravana mAsa Bhadrapada Poornima---- --P. Bhadra or U. Bhadra Nakshatra--- -- Bhadrapada mAsa Aswija Poornima---- --Aswini Nakshatra--- ---Aswija mAsa kArtika Poornima---- -Krittika Nakshatra--- --Kartika mAsa mArgasira Poornima---- -Mrigasira Nakshatra--- --Margasira mAsa Pushya Poornima---- --Pushya Nakshatra--- -Pushya mAsa mAgha Poornima---- -Magha Nakshatra--- --Magha Masa PhAluga Poornima---- -P Phalguni or U Phalguni Nakshatra--- ---PhAlguna mAsa

In your code, you have find the Poornima day, check Nakshathra on that day and find the Masa(create a hashmap for this) from the list above. I found this link useful: http://madhwamixer.blogspot.in/2010/10/basic-things-to-know-about-panchanga.html

kaflek commented 7 years ago

Thanks for the response. The link too provide useful information.

I am sorry for the previous post/comment where my verification was wrong. Now I will check/verify to get the Chandra Masa as per your information and also following the link you provided.

Thanks & regards, K Kafle

aatishnn commented 7 years ago

@santhoshn Thanks for this wonderful code. Can you point me to some resources that I can use to learn about calculations used in the code?

santhoshn commented 7 years ago

@aatishnn I wrote this somewhere in 2005. I am not able find those web pages I referred to. Here are some pages that are available now to calculate Sun and Moon's longitude: https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/22992/versions/5/previews/LunarAzEl.m/index.html https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/23190/versions/1/previews/SPOT/SolarAzEl.m/index.html

You basically need the above 2 values. Calculation of the rest are based on them.

aatishnn commented 7 years ago

@santhoshn thank you very much.

Abhinav-Sharan commented 7 years ago

@santhoshn Thanks for the wonderful work.I have used this code to port it to my Java Android App.