Pyswisseph 1.77.00-0 publishes a Python extension library

Source: Internet
Author: User
Keywords Python pyswisseph extension Library
Tags c library example files import python system upgraded use

Pyswisseph is a python extended astrodienst Swiss ephemeris C library. The purpose of this extension is to achieve very precise astronomical computations, astrology.

Pyswisseph 1.77.00-0 This version has been upgraded Swisseph to 1.77.00, adding CMake to build system files and fixing bugs.

Use examples:

>>> Import Swisseph as Swe
>>> swe.set_ephe_path ('/usr/share/ephe ') # set path to Ephemeris files
>>> now = Swe.julday (2007,3,3) # get http://www.aliyun.com/zixun/aggregation/39325.html ' >julian Day number
>>> res = Swe.lun_eclipse_when (now) # Find Next lunar eclipse
>>> ecltime = Swe.revjul (res[1][0]) # Get date UTC
>>> Ecltime
(2007, 3, 3, 23.347975596785545)
>>> JD = Swe.julday (2008,3,21)
>>> Swe.calc_ut (JD, SWE. ast_offset+13681) [0] # asteroid Monty Python
0.098474291148756998
>>> Help (SWE)

Download Address: pyswisseph-1.77.00-0.tar.bz2 (MD5)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.