{
"info": {
"author": "aqreed",
"author_email": "",
"bugtrack_url": null,
"classifiers": [],
"description": "
\n\n[](https://travis-ci.com/aqreed/solarpy)\n[](https://codecov.io/gh/aqreed/solarpy/branch/master)\n[](https://github.com/aqreed/solarpy/raw/master/COPYING)\n[](https://mybinder.org/v2/gh/aqreed/solarpy/master?filepath=examples)\n\n| | |\n| ------ | ------ |\n| Description | Python Solar Radiation model |\n| Author | aqreed |\n| Version | 0.1.3 |\n| Python Version | 3.6 |\n| Requires | Numpy, Matplotlib |\n\nThis packages aims to provide a reliable solar radiation model, mainly based on the work of Duffie, J.A., and Beckman, W. A., 1974, \"Solar energy thermal processes\".\n\nThe main purpose is to generate a **solar beam irradiance** (W/m2) prediction on:\n* **any plane**, thanks to the calculation of the solar vector in NED (North East Down) coordinates, suitable for its use in flight dynamics simulations...\n* **any place of the earth**, taking into account the solar time wrt the standard time, geometric altitude, the latitude influence on solar azimuth and solar altitude as well as sunset/sunrise time and hour angle, etc.\n* **any day of the year**, taking into account the variations of the extraterrestrial radiation, the equation of time, the declination, etc., throughout the year\n\n#### Example 1\nSolar [irradiance](https://en.wikipedia.org/wiki/Solar_irradiance) on the southern hemisphere on October 17, at sea-level 13.01UTC (plane pointing upwards)?\n\n```\nimport numpy as np\nfrom solarpy import irradiance_on_plane\nfrom datetime import datetime\n\nvnorm = np.array([0, 0, -1]) # plane pointing zenith\nh = 0 # sea-level\ndate = datetime(2019, 10, 17, 13, 1) # year, month, day, hour, minute\nlat = -23.5 # southern hemisphere\n\nirradiance_on_plane(vnorm, h, date, lat)\n```\n\nA dedicated Jupyter Notebook on beam irradiance can be found [here](https://github.com/aqreed/solarpy/blob/master/examples/solar_irradiance.ipynb).\n\n#### Example 2\nPower output (in W) of a solar panel with the following characteristics:\n* surface of 2.1 sqm\n* efficiency of 0.2\n* pointing upwards\n* in NYC\n* on December 25, at 16.15\n\n```\nfrom numpy import array\nfrom solarpy import solar_panel\nfrom datetime import datetime\n\npanel = solar_panel(2.1, 0.2, id_name='NYC_xmas') # surface, efficiency and name\npanel.set_orientation(array([0, 0, -1])) # upwards\npanel.set_position(40.73, -73.93, 0) # NYC latitude, longitude, altitude\npanel.set_datetime(datetime(2019, 12, 25, 16, 15)) # Christmas Day!\npanel.power()\n```\n\n#### Example 3\nSolar [declination](https://en.wikipedia.org/wiki/Position_of_the_Sun#Declination_of_the_Sun_as_seen_from_Earth) on August 5?\n\n```\nfrom solarpy import declination\nfrom datetime import datetime\n\ndate = datetime(2019, 8, 5) # August 5\n\ndeclination(date)\n```\n\nPlease find more notebooks on the ['examples'](https://github.com/aqreed/solarpy/tree/master/examples) folder that you can open locally, or just try [](https://mybinder.org/v2/gh/aqreed/solarpy/master?filepath=examples) to launch online interactive Jupyter notebooks.\n\n---\n**NOTE**:\nsolarpy is under development and might change in the near future.\n\n---\n\n### Dependencies\n\nThis package depends on Python, NumPy and Matplotlib and is usually tested on Linux with the following versions:\n\nPython 3.6, NumPy 1.16, Matplotlib 3.0\n\n### Installation\n\nsolarpy has been written in Python3, and its version v0.1 is available in PyPi. It can be installed using:\n\n```\n$ pip install solarpy\n```\n\nTo install in development mode:\n\n```sh\n$ git clone https://github.com/aqreed/solarpy.git\n$ cd solarpy\n$ pip install -e .\n```\n\n### Testing\n\nsolarpy recommends py.test for running the test suite. Running from the top directory:\n\n```sh\n$ pytest\n```\n\nTo test coverage (also from the top directory):\n\n```sh\n$ pytest --cov\n```\n\n### Bug reporting\n\nPlease feel free to open an [issue](https://github.com/aqreed/solarpy/issues) on GitHub!\n\n### License\n\nMIT (see `COPYING`)\n\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/aqreed/solarpy",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "solarpy",
"package_url": "https://pypi.org/project/solarpy/",
"platform": "",
"project_url": "https://pypi.org/project/solarpy/",
"project_urls": {
"Homepage": "https://github.com/aqreed/solarpy"
},
"release_url": "https://pypi.org/project/solarpy/0.1.3/",
"requires_dist": [
"numpy",
"matplotlib"
],
"requires_python": "",
"summary": "Solar radiation model based on Duffie & Beckman \"Solar energy thermal processes\" (1974)",
"version": "0.1.3"
},
"last_serial": 5870298,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "c9c609481ffb1815f9231dfb8f3d4be1",
"sha256": "97ffaa66878283b8da7ff84e7e506dcc1f5af8ea3b1d3ef997193b20249a9b8b"
},
"downloads": -1,
"filename": "solarpy-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c9c609481ffb1815f9231dfb8f3d4be1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9360,
"upload_time": "2019-08-07T11:43:00",
"url": "https://files.pythonhosted.org/packages/0e/90/956ad37fe120d509b2d1ad2192fd615345b4663c4fe353c15a164d4799f0/solarpy-0.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "13741fcbc7597e5c52321e31c6922d09",
"sha256": "b7d86ad01bb03f81043ee4af41c5a0a51717189ee867a2a022996bb4ec3f6af4"
},
"downloads": -1,
"filename": "solarpy-0.1.tar.gz",
"has_sig": false,
"md5_digest": "13741fcbc7597e5c52321e31c6922d09",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7942,
"upload_time": "2019-08-07T11:43:02",
"url": "https://files.pythonhosted.org/packages/e2/22/e999b9de6b130e37e5d0c30abda8d24a5e6d9539485906a765f2e6ee2b5f/solarpy-0.1.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "2cf9861483dae64b8cd25ffadd1d723d",
"sha256": "43497328bac2ae148014beb88bf45785dbc1efe34cc15cc6125fc095944c09d6"
},
"downloads": -1,
"filename": "solarpy-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2cf9861483dae64b8cd25ffadd1d723d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9820,
"upload_time": "2019-08-15T21:42:33",
"url": "https://files.pythonhosted.org/packages/2c/17/994f815ba6f0eefa0e6fa592c27befd82c218752176113aca998b1c88e81/solarpy-0.1.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "772fa5b0365ffd66bb087cf3c912f58b",
"sha256": "c7b955bbfb91d9767d9174e646a5c549c731976cfc0e361850511c0770972891"
},
"downloads": -1,
"filename": "solarpy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "772fa5b0365ffd66bb087cf3c912f58b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9152,
"upload_time": "2019-08-15T21:42:35",
"url": "https://files.pythonhosted.org/packages/fe/ef/3719f3f543c4fcb22a2ffb4ffdfe083b2ac6d426cdc55aee99f9018d46b3/solarpy-0.1.1.tar.gz"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "6fccf05814e9da9ad94bdca26be13a0f",
"sha256": "f39aa5dad6d787e22885a309c4bf63c3c57c354c6e3cf0a7a571483e213607d9"
},
"downloads": -1,
"filename": "solarpy-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6fccf05814e9da9ad94bdca26be13a0f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10478,
"upload_time": "2019-08-23T13:25:13",
"url": "https://files.pythonhosted.org/packages/12/53/8e37af58ccab28d6494ba9092b9d808d4091ceaee9376aa8e18aa06e5dd2/solarpy-0.1.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "5911ab783f10df127fff7d598b307f47",
"sha256": "792441a6fa39a8879a35a3cbb6fdf4e9c6344520f148340b52b4488943bd4ac1"
},
"downloads": -1,
"filename": "solarpy-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "5911ab783f10df127fff7d598b307f47",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9958,
"upload_time": "2019-08-23T13:25:15",
"url": "https://files.pythonhosted.org/packages/fd/a3/fd79863c4bfe49b39a90531acf6bee2ff53fe7d55c1755e7a7632f1658ae/solarpy-0.1.2.tar.gz"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "65823a0250f0c7f06972c309b4de8f77",
"sha256": "1f4812cf1a73451d2e898d85fcdf8d6ae4dd622d35accaa8232683f661a8fdfe"
},
"downloads": -1,
"filename": "solarpy-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "65823a0250f0c7f06972c309b4de8f77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10622,
"upload_time": "2019-09-22T20:35:59",
"url": "https://files.pythonhosted.org/packages/37/60/3558e32bd8a1ce0211b3c9a850ada9b1bc7e83088f39c0f5ec26ce2e6eba/solarpy-0.1.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "75b57dea3d73179c04ae954ef6670205",
"sha256": "8fbdf0dc8733909af007c02751c372fe73f0b67ff62dc19a1e46b35a2a890835"
},
"downloads": -1,
"filename": "solarpy-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "75b57dea3d73179c04ae954ef6670205",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9062,
"upload_time": "2019-09-22T20:36:01",
"url": "https://files.pythonhosted.org/packages/b3/53/55b16995c68bf381066eb9b2e55486ff46305099ef005cf9f312226390bf/solarpy-0.1.3.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "65823a0250f0c7f06972c309b4de8f77",
"sha256": "1f4812cf1a73451d2e898d85fcdf8d6ae4dd622d35accaa8232683f661a8fdfe"
},
"downloads": -1,
"filename": "solarpy-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "65823a0250f0c7f06972c309b4de8f77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10622,
"upload_time": "2019-09-22T20:35:59",
"url": "https://files.pythonhosted.org/packages/37/60/3558e32bd8a1ce0211b3c9a850ada9b1bc7e83088f39c0f5ec26ce2e6eba/solarpy-0.1.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "75b57dea3d73179c04ae954ef6670205",
"sha256": "8fbdf0dc8733909af007c02751c372fe73f0b67ff62dc19a1e46b35a2a890835"
},
"downloads": -1,
"filename": "solarpy-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "75b57dea3d73179c04ae954ef6670205",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9062,
"upload_time": "2019-09-22T20:36:01",
"url": "https://files.pythonhosted.org/packages/b3/53/55b16995c68bf381066eb9b2e55486ff46305099ef005cf9f312226390bf/solarpy-0.1.3.tar.gz"
}
]
}