{"id":26163672,"url":"https://github.com/maltegrosse/go-sampa","last_synced_at":"2025-04-14T14:16:04.710Z","repository":{"id":109062807,"uuid":"263430738","full_name":"maltegrosse/go-sampa","owner":"maltegrosse","description":"Go adoption of NREL's Solar and Moon Position Algorithm (SAMPA)","archived":false,"fork":false,"pushed_at":"2020-05-12T19:28:31.000Z","size":20,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T14:15:52.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maltegrosse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-12T19:20:42.000Z","updated_at":"2024-01-07T01:42:00.000Z","dependencies_parsed_at":"2023-04-08T09:32:49.541Z","dependency_job_id":null,"html_url":"https://github.com/maltegrosse/go-sampa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-sampa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-sampa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-sampa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-sampa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maltegrosse","download_url":"https://codeload.github.com/maltegrosse/go-sampa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248894943,"owners_count":21179153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-11T14:39:03.898Z","updated_at":"2025-04-14T14:16:04.680Z","avatar_url":"https://github.com/maltegrosse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go-NREL's Solar and Moon Position Algorithm (SAMPA)\n=======================================\n[![Go Report Card](https://goreportcard.com/badge/github.com/maltegrosse/go-sampa)](https://goreportcard.com/report/github.com/maltegrosse/go-sampa)\n[![GoDoc](https://godoc.org/github.com/maltegrosse/go-sampa?status.svg)](https://pkg.go.dev/github.com/maltegrosse/go-sampa)\n![Go](https://github.com/maltegrosse/go-sampa/workflows/Go/badge.svg) \n\nNREL's Solar and Moon Position Algorithm (SAMPA) calculates  the solar and lunar zenith and azimuth angles in the period from the year -2000 to 6000, with uncertainties of +/- 0.0003 degrees for the Sun and +/- 0.003 degrees for the Moon, based on the date, time, and location on Earth. The algorithm can be used for solar eclipse monitoring and estimating the reduction in solar irradiance for many applications, such as smart grid, solar energy, etc.\n\n(Reference: Reda, I. (2010). Solar Eclipse Monitoring for Solar Energy Applications Using the Solar and Moon Position Algorithms. 35 pp.; NREL Report No. TP-3B0-47681). \n## Installation\n\nThis packages requires Go 1.13. If you installed it and set up your GOPATH, just run:\n\n`go get -u github.com/maltegrosse/go-sampa`\n\n## Usage\n\nYou can find some examples in the [examples](examples) directory.\n\nPlease visit https://midcdmz.nrel.gov/sampa for additional information.\n\nSome additional helper functions have been added to the original application logic.\n## Notes\n\n\n|       | NREL sampa_tester.c    | GO Sampa    |  \n|---------------|-------|-------|\n| Julian Day     | 2455034.564583  | 2455034.564583  | \n| L          | 299.4024  | 299.402381  | \n| B      | -0.00001308059  | -0.000013080591  | \n| R            |  1.016024   | 1.016024218757  | \n| H  |  344.999100  |   344.999099851812  | \n| Delta Psi          | 0.004441121  | 0.004441121189  | \n| Delta Epsilon         | 0.001203311  | 0.001203311382  | \n| Epsilon          | 23.439252 | 23.439252167574  | \n| Zenith     | 14.512686 | 14.512686209564 | \n| Azimuth     | 104.387917  |  104.387916743210 | \n| Angular dist      | 0.374760  | 0.374759984176  | \n| Sun Radius         | 0.262360  | 0.262359778407 | \n| Moon Radius            |  0.283341  | 0.283341456977 |\n| Area unshaded            | 78.363514  | 78.363513779787 |\n| DNI             |  719.099358  | 719.099358263094 |\n\n\n\n## License\n**[NREL SAMPA License](https://midcdmz.nrel.gov/sampa/#license)**\n\nAdoption in Golang under **[MIT license](http://opensource.org/licenses/mit-license.php)** 2020 © Malte Grosse.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaltegrosse%2Fgo-sampa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaltegrosse%2Fgo-sampa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaltegrosse%2Fgo-sampa/lists"}