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)
Sidereal mode as integer
Reference date as double (day)
The initial latitude value of the ayanamsa as double (deg)
UT Julian day number as double (day)
Computation flag as integer, many options possible (section 2.3)
ET Julian day number as double (day)
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 http://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] ""
#>