Section4 | R Documentation |
The following functions are used to calculate positions of fixed stars.
swe_fixstar2_mag(starname)
swe_fixstar2(starname, jd_et, iflag)
swe_fixstar2_ut(starname, jd_ut, iflag)
starname |
Star name as string ("" for no star) |
jd_et |
ET Julian day number as double (day) |
iflag |
Calculation flag as integer, many options possible (section 2.3) |
jd_ut |
UT Julian day number (day) |
Calculate visible magnitude (Vmag) of star.
Compute information of star using ET.
Compute information of star using UT
swe_fixstar2_mag
returns a list with named entries: return
status flag as integer,
starname
updated star name as string, mag
magnitude of star as double, and serr
for error message as string.
swe_fixstar2
returns a list with named entries: return
status flag as integer,
starname
updated star name as string, xx
star phenomena as numeric vector, and serr
error message as string.
swe_fixstar2_ut
returns a list with named entries: return
status flag as integer,
starname
updated star name as string, xx
star information as numeric vector, and serr
for error message as string.
Section 4 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_fixstar2_mag("sirius")
swe_set_topo(0,50,10)
swe_fixstar2("sirius",1234567,SE$FLG_TOPOCTR+SE$FLG_MOSEPH+SE$FLG_EQUATORIAL)
swe_fixstar2_ut("sirius",1234567,SE$FLG_TOPOCTR+SE$FLG_MOSEPH+SE$FLG_EQUATORIAL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.