| | |
- POINTER(...)
- addressof(...)
- addressof(C instance) -> integer
Return the address of the C instance internal buffer
- alignment(...)
- alignment(C type) -> integer
alignment(C instance) -> integer
Return the alignment requirements of a C instance
- byref(...)
- byref(C instance[, offset=0]) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
- get_errno(...)
- pointer(...)
- resize(...)
- Resize the memory buffer of a ctypes instance
- set_conversion_mode(...)
- set_conversion_mode(encoding, errors) -> (previous-encoding, previous-errors)
Set the encoding and error handling ctypes uses when converting
between unicode and strings. Returns the previous values.
- set_errno(...)
- sizeof(...)
- sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance
- solarsystem(tjd, body, origin)
- Provides an interface between the JPL direct-access solar system
ephemerides and NOVAS-C.
Parameters
----------
tjd : float
Julian date of the desired time, on the TDB time scale.
body : integer
Body identification number for the solar system object of
interest; Mercury = 1, ..., Pluto = 9, Sun = 10, Moon = 11.
origin : integer
Origin code
= 0 ... solar system barycenter
= 1 ... center of mass of the Sun
= 2 ... center of Earth
Returns
-------
position : tuple of floats, of length 3
Position vector of 'body' at 'tjd'; equatorial rectangular
coordinates in AU referred to the ICRS.
velocity : tuple of floats, of length 3
Velocity vector of 'body' at 'tjd'; equatorial rectangular
system referred to the ICRS, in AU/day.
Notes
-----
.. [N1] This function and function 'planet_ephemeris' were designed
to work with the 1997 version of the JPL ephemerides, as noted
in the references.
.. [N2] The user must have a JPL binary ephemeris file (see package
README) and open the file using function 'ephem_open' prior to
calling this function.
.. [N3] This function places the entire Julian date in the first
element of the input time to 'planet_ephemeris'. This is
adequate for all but the highest precision applications. For
highest precision, use function 'solarsystem_hp'.
References
----------
.. [R1] JPL. 2007, "JPL Planetary and Lunar Ephemerides: Export
Information," (Pasadena, CA: JPL)
http://ssd.jpl.nasa.gov/?planet_eph_export.
.. [R2] Kaplan, G. H. "NOVAS: Naval Observatory Vector Astrometry
Subroutines"; USNO internal document dated 20 Oct 1988;
revised 15 Mar 1990.
- solarsystem_hp(tjd, body, origin)
- Provides an interface between the JPL direct-access solar system
ephemerides and NOVAS-C for highest precision applications.
Parameters
----------
tjd : tuple of floats, of length 2
Two-element tuple containing the Julian date, which may be split
any way (although the first element is usually the "integer"
part, and the second element is the "fractional" part). Julian
date is on the TDB or "T_eph" time scale.
body : integer
Body identification number for the solar system object of
interest; Mercury = 1, ..., Pluto = 9, Sun = 10, Moon = 11.
origin : integer
Origin code
= 0 ... solar system barycenter
= 1 ... center of mass of the Sun
= 2 ... center of Earth
Returns
-------
position : tuple of floats, of length 3
Position vector of 'body' at 'tjd'; equatorial rectangular
coordinates in AU referred to the ICRS.
velocity : tuple of floats, of length 3
Velocity vector of 'body' at 'tjd'; equatorial rectangular
system referred to the ICRS, in AU/day.
Notes
-----
.. [N1] This function and function 'planet_ephemeris' were designed
to work with the 1997 version of the JPL ephemerides, as noted
in the references.
.. [N2] The user must have a JPL binary ephemeris file (see package
README) and open the file using function 'ephem_open' prior to
calling this function.
.. [N3] This function supports the "split" Julian date feature of
function 'planet_ephemeris' for highest precision. For usual
applications, use function 'solarsystem'.
References
----------
.. [R1] JPL. 2007, "JPL Planetary and Lunar Ephemerides: Export
Information," (Pasadena, CA: JPL)
http://ssd.jpl.nasa.gov/?planet_eph_export.
.. [R2] Kaplan, G. H. "NOVAS: Naval Observatory Vector Astrometry
Subroutines"; USNO internal document dated 20 Oct 1988;
revised 15 Mar 1990.
|