swephR v0.2.0

[This article was first published on R on Ralf Stubner, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

This morning swephR version 0.2.0 made it unto CRAN and is now propagating to the mirrors.

The goal of swephR is to provide an R interface to the Swiss Ephemeris, a high precision ephemeris based upon the DE431 ephemeris from NASA’s JPL. It covers the time range 13201 BCE to 17191 CE.

The new version 0.2.0 brings two important changes. First, the version of the included Swiss Ephemeris has been updated to the current version 2.08. Upstream’s release notes list several changes. Most relevant for users of the package is the update to current Delta T and the fixes to the star functions. Internally, this release includes most of the patches we had created in the process of getting the package unto CRAN, simplifying future updates. Unfortunately, we learned that the links to certain sections of the programmer’s documentation are not stable between updates and had to be replaced with a generic reference.

Second, following a feature request for some Astrology related functions, the coverage of the C API has been extend. In particular, the following functions are now supported:

Section 10: Sidereal mode functions

  • 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)

Section 13: House cusp, ascendant and Medium Coeli calculations

  • swe_houses_ex(jd_ut, cuspflag, geolat, geolon, hsys)
  • swe_houses_armc(armc, geolat, eps, hsys)
  • swe_house_name(hsys)

Section 14: House position calculations

  • swe_house_pos(armc, geolat, eps, hsys, xpin)
  • swe_gauquelin_sector(jd_ut, ipl, starname, ephe_flag, imeth, geopos, atpress, attemp)

Section 15: Sidereal time

  • swe_sidtime(jd_ut)

Please use the issue tracker for feedback such as questions, comments, feature requests or bug reports.

To leave a comment for the author, please follow the link and comment on their blog: R on Ralf Stubner.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)