{"id":26163692,"url":"https://github.com/maltegrosse/go-solpos","last_synced_at":"2025-06-22T18:34:55.447Z","repository":{"id":109062949,"uuid":"262847809","full_name":"maltegrosse/go-solpos","owner":"maltegrosse","description":"Go adoption of NREL SOLPOS 2.0: Calculates the solar position and intensity based on location, date, and time inputs for the years 1950–2050.","archived":false,"fork":false,"pushed_at":"2020-05-10T18:34:14.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T14:48:40.933Z","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-10T18:14:26.000Z","updated_at":"2020-05-10T18:31:44.000Z","dependencies_parsed_at":"2023-04-08T08:05:38.525Z","dependency_job_id":null,"html_url":"https://github.com/maltegrosse/go-solpos","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maltegrosse/go-solpos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-solpos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-solpos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-solpos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-solpos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maltegrosse","download_url":"https://codeload.github.com/maltegrosse/go-solpos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltegrosse%2Fgo-solpos/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261344445,"owners_count":23144865,"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:30.197Z","updated_at":"2025-06-22T18:34:50.427Z","avatar_url":"https://github.com/maltegrosse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go-Solar Position and Intensity (SOLPOS)\n=======================================\n[![Go Report Card](https://goreportcard.com/badge/github.com/maltegrosse/go-solpos)](https://goreportcard.com/report/github.com/maltegrosse/go-solpos)\n[![GoDoc](https://godoc.org/github.com/maltegrosse/go-solpos?status.svg)](https://pkg.go.dev/github.com/maltegrosse/go-solpos)\n![Go](https://github.com/maltegrosse/go-solpos/workflows/Go/badge.svg) \n\nNREL's Solar Position and Intensity (SOLPOS 2.0) C function (adopted in go lang) calculates the apparent solar position and intensity (theoretical maximum solar energy) based on date, time, and location on Earth for the years *1950–2050*.\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-solpos`\n\n## Usage\n\nYou can find some examples in the [examples](examples) directory.\n\nPlease visit https://www.nrel.gov/grid/solar-resource/solpos.html for additional information.\n\nSome additional helper functions have been added to the original application logic.\n## Notes\nNote that your final decimal place values may vary based on your computer's floating-point storage and your compiler's mathematical algorithms.  If you agree with NREL's values for at least 5 significant digits, assume it works.\n\nIf the difference is smaller than 0.000001,it is shown as 0.\n\n|       | NREL   | SOLPOS GO    |  Difference |\n|---------------|-------|-------|-------|\n| day     | 22  | 22  | 0 |\n| month          | 7  | 7  | 0 |\n| year      | 1999  | 1999  | 0  |\n| daynum           | 203  | 203  | 0 |\n| ampress |  1.326522  | 1.3265254683395031  | 0 |\n| cosinc         | 0.912569  | 0.9125697491698622  | 0 |\n| prime        | 1.037040  | 1.0370400228238181  | 0 |\n| elevref          | 48.409931 | 48.40974986370258  | 0.00018113629742089188 |\n| etrtilt     | 1207.547363 | 1207.5486465939166 | 0 |\n| sbcf     | 1.201910  | 1.2019108852729568 | 0 |\n| sunrise      | 347.173431  | 347.1746053157332  | 0 |\n| sunset         | 1181.111206  | 1181.1101930505447 | 0.0010129494553439145 |\n| unprime           | 0.964283  | 0.9642829379690094 | 0 |\n| zenref        | 41.590069  | 41.59025013629742  | 0 |\n| amass           | 1.335752  | 1.3357557648388834  | 0 |\n| azim          | 97.032875  | 97.03331438627943  | 0 |\n| etr          | 989.668518  | 989.6657077767151  | 0.0028102232848823405 |\n| etrn          | 1323.239868  | 1323.2398374944908  | 3.0505509130307473e-05 |\n\n\n\n## License\n**[ NREL data disclaimer](https://www.nrel.gov/disclaimer.html)**\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-solpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaltegrosse%2Fgo-solpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaltegrosse%2Fgo-solpos/lists"}