swephR (version 0.2.1)

Section1: Section 1: The Ephemeris file related functions

Description

Several initialization functions

Usage

swe_set_ephe_path(path)

swe_close()

swe_set_jpl_file(fname)

swe_version()

Arguments

path

Directory for the sefstars.txt, swe_deltat.txt and jpl files

fname

JPL ephemeris name as string (JPL ephemeris file, e.g. de431.eph)

Value

swe_version returns Swiss Ephemeris software version as string

Details

swe_set_ephe_path()

This is the first function that should be called before any other function of the Swiss Ephemeris. Even if you don't want to set an ephemeris path and use the Moshier ephemeris, it is nevertheless recommended to call swe_set_ephe_path(NULL), because this function makes important initializations. If you don't do that, the Swiss Ephemeris may work, but the results may be not 100% consistent.

swe_close()

At the end of your computations this function releases most resources (open files and allocated memory) used by Swiss Ephemeris.

swe_set_jpl_file()

Set name of JPL ephemeris file.

swe_version()

The function provides the version number of the Swiss Ephemeris software.

See Also

Section 1 in http://www.astro.com/swisseph/swephprg.htm

Examples

Run this code
# NOT RUN {
swe_set_ephe_path("c:\\sweph\\ephe")
# }
# NOT RUN {
swe_close()
swe_set_jpl_file("de431.eph")
swe_version()
# }

Run the code above in your browser using DataCamp Workspace