{"id":13718951,"url":"https://github.com/aqreed/solarpy","last_synced_at":"2026-01-19T13:38:20.789Z","repository":{"id":56531681,"uuid":"199307454","full_name":"aqreed/solarpy","owner":"aqreed","description":"Solar radiation model for flight dynamics. Based on Duffie \u0026 Beckman \"Solar energy thermal processes\" (1974)","archived":false,"fork":false,"pushed_at":"2020-11-02T08:18:49.000Z","size":2484,"stargazers_count":58,"open_issues_count":10,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-17T08:36:53.894Z","etag":null,"topics":["beam-irradiance","flight-simulation","modeling","photovoltaic","python","simulation","solar-cells","solar-energy","sun-position"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aqreed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-28T15:53:41.000Z","updated_at":"2026-01-15T19:07:43.000Z","dependencies_parsed_at":"2022-08-15T20:30:51.015Z","dependency_job_id":null,"html_url":"https://github.com/aqreed/solarpy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/aqreed/solarpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqreed%2Fsolarpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqreed%2Fsolarpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqreed%2Fsolarpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqreed%2Fsolarpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aqreed","download_url":"https://codeload.github.com/aqreed/solarpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqreed%2Fsolarpy/sbom","scorecard":{"id":204585,"data":{"date":"2025-08-11","repo":{"name":"github.com/aqreed/solarpy","commit":"f9929b4807793b0ef4ea705e3a0a955f0c147167"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: MIT License: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-16T23:26:32.830Z","repository_id":56531681,"created_at":"2025-08-16T23:26:32.830Z","updated_at":"2025-08-16T23:26:32.830Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28553055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beam-irradiance","flight-simulation","modeling","photovoltaic","python","simulation","solar-cells","solar-energy","sun-position"],"created_at":"2024-08-03T01:00:39.896Z","updated_at":"2026-01-19T13:38:20.772Z","avatar_url":"https://github.com/aqreed.png","language":"Python","funding_links":[],"categories":["Renewable Energy"],"sub_categories":["Photovoltaics and Solar Energy"],"readme":"\u003cimg src=\"/img/logo.svg\" alt=\"drawing\" width=\"450\"/\u003e\n\n[![Build Status](https://travis-ci.com/aqreed/solarpy.svg?branch=master)](https://travis-ci.com/aqreed/solarpy)\n[![codecov.io](https://codecov.io/gh/aqreed/solarpy/branch/master/graph/badge.svg)](https://codecov.io/gh/aqreed/solarpy/branch/master)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/aqreed/solarpy/raw/master/COPYING)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/aqreed/solarpy/master?filepath=examples)\n\n|  |  |\n| ------ | ------ |\n| Description | Python Solar Radiation model |\n| Author | aqreed \u003caqreed@protonmail.com\u003e |\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 [![Binder](https://mybinder.org/badge_logo.svg)](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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faqreed%2Fsolarpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faqreed%2Fsolarpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faqreed%2Fsolarpy/lists"}