Calculate sunpath using pyephem
Project description
pyephem_sunpath
Calculate sunpath using pyephem
Free software: GNU Lesser Public License v3
Documentation: https://pyephem-sunpath.readthedocs.io.
Repository: https://github.com/santoshphilip/pyephem_sunpath
Introduction
Pyephem_sunpath is built upon pyephem an astronomical computation package. From the pyephem website we have:
“PyEphem provides basic astronomical computations for the Python programming language. Given a date and location on the Earth’s surface, it can compute the positions of the Sun and Moon, of the planets and their moons, and of any asteroids, comets, or earth satellites whose orbital elements the user can provide. Additional functions are provided to compute the angular separation between two objects in the sky, to determine the constellation in which an object lies, and to find the times at which an object rises, transits, and sets on a particular day.”
Pyephem_sunpath uses the a small part of pyephem to calculate the sun position and sun path for any location on earth. The big advantage of using pyephem, is that we will get a high degree of accuracy in the calculations.
Features
sunpos() calculates sun position (in altitude and azimuth) using local time and timezone
sunpos_radiance and sunpos_radiancexyz also calculate the sun position. The arguments and results are designed for users of the Radiance Software.
function details are in the module documentation and docstrings
Usage
Find the sun position in New Delhi at 1pm:
from pyephem_sunpath.sunpath import sunpos from datetime import datetime thetime = datetime(2018, 5, 23, 13) lat = 28.6 lon = 77.2 tz = 5.5 alt, azm = sunpos(thetime, lat, lon, tz, dst=False) print(alt, azm) >> 77.5362391561 232.336370505
Credits
Pyephem_sunpath is built upon pyephem an awesome astronomical package
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.2.1 (2018-05-29)
2018-05-28
removed click from setup.py
0.2.0 (2018-05-28)
2018-05-28
cleaned up code
comprehensive docstrings
updated README.rst
added copyright notices
updated contributing authors
0.1.1 (2018-05-26)
Working release on PyPI.
0.1.0 (2018-05-05)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyephem_sunpath-0.2.2.tar.gz
.
File metadata
- Download URL: pyephem_sunpath-0.2.2.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.2 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5daa13e8f3d014e57ebf37b36640a1d680b7e663eca3c15ae49f9a0a8847af2a |
|
MD5 | e6bce28c1be360d8a2991e06672a9426 |
|
BLAKE2b-256 | 41991814401953d2cc52f8b23a2755145c56d6422b767db4e6d03e0a8e8eddad |
File details
Details for the file pyephem_sunpath-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pyephem_sunpath-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.2 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ecb6449633adae849f97bb3744eadb6850b7514496973fbb462421f4667da60 |
|
MD5 | 2d827e7718aa1c0ca49131a6e8b409a5 |
|
BLAKE2b-256 | 69e2bacadc62641d1fd1f2be7fc31b89664ee6487c026a3f0d58f27a82c947f0 |