Functions to support the determination of sidereal information
swe_set_sid_mode(sid_mode, t0, ayan_t0)
swe_get_ayanamsa_name(sid_mode)
swe_get_ayanamsa_ex_ut(jd_ut, iflag)
swe_get_ayanamsa_ex(jd_et, iflag)
swe_get_ayanamsa_name
returns name of ayanamsa method as string
swe_get_ayanamsa_ex_ut
returns a list with named entries: return
status flag as integer,
daya
ayanamsa value as double and serr
error message as string
swe_get_ayanamsa_ex
returns a list with named entries: return
status flag as integer,
daya
ayanamsa value as double and serr
error message as string
Set the mode for sidereal computations.
Get the mode name for sidereal computations.
It computes ayanamsa using UT.
It computes ayanamsa using ET.
Section 10 in https://www.astro.com/swisseph/swephprg.htm. Remember that array indices start in R at 1, while in C they start at 0!
data(SE)
swe_set_sid_mode(SE$SIDM_FAGAN_BRADLEY,0,0)
swe_get_ayanamsa_name(SE$SIDM_FAGAN_BRADLEY)
#> [1] "Fagan/Bradley"
swe_get_ayanamsa_ex_ut(2458346.82639,SE$FLG_MOSEPH)
#> $return
#> [1] 4
#>
#> $daya
#> [1] 24.99676
#>
#> $serr
#> [1] ""
#>
swe_get_ayanamsa_ex(2458346.82639,SE$FLG_MOSEPH)
#> $return
#> [1] 4
#>
#> $daya
#> [1] 24.99676
#>
#> $serr
#> [1] ""
#>