{"id":28629805,"url":"https://github.com/codebox/star-charts","last_synced_at":"2025-07-16T17:32:37.235Z","repository":{"id":140515153,"uuid":"73086672","full_name":"codebox/star-charts","owner":"codebox","description":"Generate SVG star charts using Python","archived":false,"fork":false,"pushed_at":"2019-09-08T10:56:14.000Z","size":1134,"stargazers_count":104,"open_issues_count":5,"forks_count":39,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-12T12:13:40.529Z","etag":null,"topics":["astronomy","python","starchart","svg"],"latest_commit_sha":null,"homepage":"https://codebox.net/pages/star-charts-with-python","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/codebox.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,"zenodo":null}},"created_at":"2016-11-07T14:32:25.000Z","updated_at":"2025-05-28T04:18:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3e59553-8c39-423b-aa01-ec629166083b","html_url":"https://github.com/codebox/star-charts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codebox/star-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebox%2Fstar-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebox%2Fstar-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebox%2Fstar-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebox%2Fstar-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebox","download_url":"https://codeload.github.com/codebox/star-charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebox%2Fstar-charts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265527555,"owners_count":23782480,"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":["astronomy","python","starchart","svg"],"created_at":"2025-06-12T12:13:39.189Z","updated_at":"2025-07-16T17:32:37.230Z","avatar_url":"https://github.com/codebox.png","language":"Python","readme":"# Star Charts\n\nThis Python script will generate SVG star charts, like the ones shown below:\n\n\u003cimg src=\"https://codebox.net/assets/images/star-charts-with-python/orion.png\" height=\"480px\" width=\"480px\" alt=\"Star Chart showing Orion\" /\u003e\u003cbr\u003e\n\u003csup\u003eThe constellation Orion, showing stars down to magnitude 8 [original SVG](https://codebox.net/assets/images/star-charts-with-python/orion.svg)\u003c/sup\u003e\n\nThe script reads data about the position and brightness of stars from a CSV file like [this one](https://raw.githubusercontent.com/codebox/star-charts/master/stardata.csv).\nEach row in the CSV file contains information about a single star in 4 columns as follows:\n\n* \u003cb\u003eRight-Ascension\u003c/b\u003e: the star's angular distance eastward from the vernal equinox (0 to 24)\n* \u003cb\u003eDeclination\u003c/b\u003e: the star's angular distance northward from the celestial equator (-90 to +90)\n* \u003cb\u003eMagnitude\u003c/b\u003e: the star's brightness\n* \u003cb\u003eLabel\u003c/b\u003e: an optional field used to add labels to stars (see the Greek letters in the example chart above)\n\nFor example\n\n```\n5.91937636,+76.86957095, 8.07\n5.91952477,+07.40703634, 0.45,α\n5.92011402,+61.86673905, 8.60\n5.92045102,-73.15075170, 7.72\n```\n\nThe area to be covered by the chart is specified using a \u003ca href=\"https://github.com/codebox/star-charts/blob/master/sky_area.py\"\u003eSkyArea\u003c/a\u003e object, which must be \u003ca href=\"https://github.com/codebox/star-charts/blob/master/main.py#L9\"\u003ereferenced the main.py file\u003c/a\u003e. A few pre-defined areas are included, such as complete northern and southern sky maps:\n\n\u003cimg src=\"https://codebox.net/assets/images/star-charts-with-python/northern_sky.png\" height=\"420px\" width=\"420px\" class=\"\" alt=\"Star Chart showing the northern sky\" /\u003e\n\u003cimg src=\"https://codebox.net/assets/images/star-charts-with-python/southern_sky.png\" height=\"420px\" width=\"420px\" class=\"\" alt=\"Star Chart showing the southern sky\" /\u003e\n\n\u003csup\u003eMaps of the Northern and Southern skies, showing stars down to magnitude 7 (original SVGs: [North](https://codebox.net/assets/images/star-charts-with-python/northern_sky.svg) and [South](https://codebox.net/assets/images/star-charts-with-python/southern_sky.svg)\u003c/sup\u003e\n\nThe script is run by simply executing the main.py file, as follows:\n\n```\npython main.py\n```\n\nThe SVG file will be created in the current directory, and will be named \u003cb\u003estar-chart.svg\u003c/b\u003e\n\nPlease note that the script is designed to be run using \u003cb\u003ePython 3\u003c/b\u003e, it will not run correctly with Python 2.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebox%2Fstar-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebox%2Fstar-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebox%2Fstar-charts/lists"}