Title: | Vedic Calendar System |
---|---|
Description: | Provides platform for Vedic calendar system having several functionalities to facilitate conversion between Gregorian and Vedic calendar systems, and helpful in examining its impact in the time series analysis domain. |
Authors: | Neeraj Dhanraj Bokde [aut, cre, cph], Prajwal Kailasnath Patil [aut], Saradindu Sengupta [aut], Andrés Elías Feijóo Lorenzo [aut] |
Maintainer: | Neeraj Dhanraj Bokde <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.1.9 |
Built: | 2024-11-15 03:51:21 UTC |
Source: | https://github.com/prajwalkpatil/vedicdatetime |
ahargana
ahargana(jd)
ahargana(jd)
jd |
Julian day number |
Ahargana
ahargana(2459778) ahargana(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL))
ahargana(2459778) ahargana(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL))
Duration of the day for a given place and time
day_duration(jd, place)
day_duration(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Vector containing the length of the day & in dms
day_duration(2459778,c(15.34, 75.13, +5.5)) day_duration(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
day_duration(2459778,c(15.34, 75.13, +5.5)) day_duration(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
elapsed_year
elapsed_year(jd, maasa_num)
elapsed_year(jd, maasa_num)
jd |
Julian Day number |
maasa_num |
Number indicating the Maasa |
A vector containing Kali, Saka, and Vikram Samvat
elapsed_year(2459778,2)
elapsed_year(2459778,2)
Convert degrees, minutes, and seconds to decimal degrees
from_dms(degs, mins, secs)
from_dms(degs, mins, secs)
degs |
Degrees |
mins |
Minutes |
secs |
Seconds |
Degrees as a decimal number
from_dms(30,15,50)
from_dms(30,15,50)
Get name(s) of the Karana for given Julian day number and place.
get_karana_name(jd, place)
get_karana_name(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Name(s) of the Karana.
get_karana_name(2459778,c(15.34, 75.13, +5.5)) get_karana_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
get_karana_name(2459778,c(15.34, 75.13, +5.5)) get_karana_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
Get name of the Lagna for given Julian day number.
get_lagna_name(jd)
get_lagna_name(jd)
jd |
Julian day number |
Name of the lagna.
get_lagna_name(2459778) get_lagna_name(gregorian_to_jd(30,8,2022))
get_lagna_name(2459778) get_lagna_name(gregorian_to_jd(30,8,2022))
Get name of the Masa for given Julian day number and place.
get_masa_name(jd, place)
get_masa_name(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Name of the Masa
get_masa_name(2459778,c(15.34, 75.13, +5.5)) get_masa_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
get_masa_name(2459778,c(15.34, 75.13, +5.5)) get_masa_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
Get name(s) of the Nakshatra for given Julian day number and place.
get_nakshatra_name(jd, place)
get_nakshatra_name(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Name(s) of the Nakshatra and its ending time.
get_nakshatra_name(2459778,c(15.34, 75.13, +5.5)) get_nakshatra_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
get_nakshatra_name(2459778,c(15.34, 75.13, +5.5)) get_nakshatra_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
Get name of the Rashi for given Julian day number.
get_rashi_name(jd)
get_rashi_name(jd)
jd |
Julian day number |
Name of the Rashi.
get_rashi_name(2459778) get_rashi_name(gregorian_to_jd(30,8,2022))
get_rashi_name(2459778) get_rashi_name(gregorian_to_jd(30,8,2022))
get_ritu_name
get_ritu_name(masa_num)
get_ritu_name(masa_num)
masa_num |
Number associated with a Masa |
Ritu's name
ritu(2)
ritu(2)
Name of the Shaka Samvatsar for a given Julian day number and maasa number.
get_samvatsara_name(jd, maasa_num)
get_samvatsara_name(jd, maasa_num)
jd |
Julian day number |
maasa_num |
Maasa number |
Shaka Samvatsar
get_samvatsara_name(2459778,2)
get_samvatsara_name(2459778,2)
Get name(s) of the Tithi for given Julian day number and place.
get_tithi_name(jd, place)
get_tithi_name(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Name(s) of the Tithi and its ending time.
get_tithi_name(2459778,c(15.34, 75.13, +5.5)) get_tithi_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
get_tithi_name(2459778,c(15.34, 75.13, +5.5)) get_tithi_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
Get name of the Vaara for given Julian day number.
get_vaara_name(jd)
get_vaara_name(jd)
jd |
Julian day number |
Name of the Vaara.
get_vaara_name(2459778) get_vaara_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL))
get_vaara_name(2459778) get_vaara_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL))
Get name(s) of the Yoga for given Julian day number and place.
get_yoga_name(jd, place)
get_yoga_name(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Name(s) of the Yoga and its ending time.
get_yoga_name(2459778,c(15.34, 75.13, +5.5)) get_yoga_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
get_yoga_name(2459778,c(15.34, 75.13, +5.5)) get_yoga_name(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
Convert Gregorian date to Julian day number at 00:00 UTC
gregorian_to_jd(day, month, year)
gregorian_to_jd(day, month, year)
day |
Day number |
month |
Month number |
year |
Year number |
Julian day number
gregorian_to_jd(18,7,2022)
gregorian_to_jd(18,7,2022)
Given two vectors x and y, find the value of x = xa when y = ya, i.e., f(xa) = ya
inverse_lagrange(x, y, ya)
inverse_lagrange(x, y, ya)
x |
Vector x |
y |
Vector y |
ya |
Double ya |
Value of xa
Convert Julian day number to Gregorian date
jd_to_gregorian(jd)
jd_to_gregorian(jd)
jd |
Julian day number |
Gregorian date
jd_to_gregorian(2459778)
jd_to_gregorian(2459778)
Karana for a given place and time
karana(jd, place)
karana(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Two karanas
karana(2459778,c(15.34, 75.13, +5.5)) karana(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
karana(2459778,c(15.34, 75.13, +5.5)) karana(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
Name of 60 Karanas which is when moon traverses 6° in longitude relative to the sun
karanas
karanas
An object of class character
of length 60.
Lagna for a given Julian day number
lagna(jd)
lagna(jd)
jd |
Julian day number |
Lagna as an integer
lagna(2459778) lagna(gregorian_to_jd(30,8,2022))
lagna(2459778) lagna(gregorian_to_jd(30,8,2022))
Lunar phase for a given Julian day number
lunar_phase(jd)
lunar_phase(jd)
jd |
Julian day number |
Lunar phase
lunar_phase(2459778)
lunar_phase(2459778)
Masa for a given place and time
masa(jd, place)
masa(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Masa number and whether it is adhika masa or not
masa(2459778,c(15.34, 75.13, +5.5)) masa(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
masa(2459778,c(15.34, 75.13, +5.5)) masa(swephR::swe_julday(2022,7,14,0,swephR::SE$GREG_CAL),c(15.34, 75.13, +5.5))
Lunar month in the Vedic calendar system
masas
masas
An object of class character
of length 12.
Get Lunar longitude for a given Julian day number.
moon_longitude(jd)
moon_longitude(jd)
jd |
Julian day |
Lunar longitude for jd
moon_longitude(2459778) moon_longitude(2459500)
moon_longitude(2459778) moon_longitude(2459500)
Moonrise for a given date and place
moonrise(jd, place)
moonrise(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Moonrise as Julian day number
moonrise(2459778,c(15.34, 75.13, +5.5))
moonrise(2459778,c(15.34, 75.13, +5.5))
Moonset for a given date and place
moonset(jd, place)
moonset(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Moonset as Julian day number
moonset(2459778,c(15.34, 75.13, +5.5))
moonset(2459778,c(15.34, 75.13, +5.5))
Nakshatra for a given place and time
nakshatra(jd, place)
nakshatra(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Nakshatra and it's ending time
nakshatra(2459778,c(15.34, 75.13, +5.5)) nakshatra(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
nakshatra(2459778,c(15.34, 75.13, +5.5)) nakshatra(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
Name of the 27 Nakshatras in Vedic calendar system
nakshatras
nakshatras
An object of class character
of length 27.
Julian day representing the new moon day for a given Julian day number and tithi
new_moon(jd, tithi_, opt = -1)
new_moon(jd, tithi_, opt = -1)
jd |
Julian day number |
tithi_ |
Number associated with the tithi |
opt |
Option to select next new moon day( |
New moon day as a Julian day number
new_moon(2459778,2) new_moon(2459778,tithi(2459778,c(15.34, 75.13, +5.5)))
new_moon(2459778,2) new_moon(2459778,tithi(2459778,c(15.34, 75.13, +5.5)))
Rashi for a given Julian day number
rashi(jd)
rashi(jd)
jd |
Julian day number |
Rashi as an integer
rashi(2459778) rashi(gregorian_to_jd(30,8,2022))
rashi(2459778) rashi(gregorian_to_jd(30,8,2022))
The name of 12 Rashis which represents the position of the moon on the zodiac at a given time
rashis
rashis
An object of class character
of length 12.
ritu
ritu(masa_num)
ritu(masa_num)
masa_num |
Number associated with a Masa |
Number associated with the Ritu
ritu(2)
ritu(2)
Name of the 6 seasons in Vedic calendar system
ritus
ritus
An object of class character
of length 6.
Shaka Samvatsar for a given Julian day number and maasa number.
samvatsara(jd, maasa_num)
samvatsara(jd, maasa_num)
jd |
Julian day number |
maasa_num |
Maasa number |
Number associated with the Shaka Samvatsar
samvatsara(2459778,2)
samvatsara(2459778,2)
Name of the Year in Hindu Panchang
samvatsars
samvatsars
An object of class character
of length 60.
Get Solar longitude for a given Julian day number.
sun_longitude(jd)
sun_longitude(jd)
jd |
Julian day |
Solar longitude for jd
sun_longitude(2459778) sun_longitude(2459500)
sun_longitude(2459778) sun_longitude(2459500)
Sunrise for a given date and place
sunrise(jd, place)
sunrise(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Sunrise as Julian day number
sunrise(2459778,c(15.34, 75.13, +5.5))
sunrise(2459778,c(15.34, 75.13, +5.5))
Sunset for a given date and place
sunset(jd, place)
sunset(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Sunset as Julian day number
sunset(2459778,c(15.34, 75.13, +5.5))
sunset(2459778,c(15.34, 75.13, +5.5))
Tithi for a given place and time
tithi(jd, place)
tithi(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Tithi and it's ending time
tithi(2459778,c(15.34, 75.13, +5.5)) tithi(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
tithi(2459778,c(15.34, 75.13, +5.5)) tithi(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
lunar day in the Vedic calendar system
tithis
tithis
An object of class character
of length 30.
Convert decimal degrees to degrees, minutes, and seconds
to_dms(deg)
to_dms(deg)
deg |
Degrees as a decimal number |
A vector containing degrees, minutes and seconds
to_dms(30.263888889)
to_dms(30.263888889)
Add 360 degs an element in the input vector if elements are not sorted in ascending order.
unwrap_angles(angles)
unwrap_angles(angles)
angles |
Vector containing angles |
angles in ascending order
Vaara for a given Julian day number
vaara(jd)
vaara(jd)
jd |
Julian day number |
Vaara as an integer
vaara(2459778)
vaara(2459778)
Name of the day of the week
vaaras
vaaras
An object of class character
of length 7.
Yoga for a given place and time
yoga(jd, place)
yoga(jd, place)
jd |
Julian day number |
place |
Vector containing latitude, longitude and timezone |
Yoga and it's ending time
yoga(2459778,c(15.34, 75.13, +5.5)) yoga(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
yoga(2459778,c(15.34, 75.13, +5.5)) yoga(gregorian_to_jd(17,6,2022),c(15.34, 75.13, +5.5))
Name of the 27 yogas which is sum of sidereal longitudes of sun and moon in the multiples of 13 degrees 20 minutes
yogas
yogas
An object of class character
of length 27.