{"id":16505591,"url":"https://github.com/kecnry/astropy-units-iau2015","last_synced_at":"2025-03-02T00:48:12.646Z","repository":{"id":111736883,"uuid":"94646499","full_name":"kecnry/astropy-units-IAU2015","owner":"kecnry","description":"light wrapper around astropy.units that changes constants and units to match those in the IAU 2015 resolution","archived":false,"fork":false,"pushed_at":"2021-12-11T18:40:34.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T13:50:47.902Z","etag":null,"topics":["astronomy","astropy","units"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kecnry.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":"2017-06-17T20:06:39.000Z","updated_at":"2021-12-11T18:40:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e32503c-2c96-4b6a-bb8f-6562e2278fa3","html_url":"https://github.com/kecnry/astropy-units-IAU2015","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fastropy-units-IAU2015","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fastropy-units-IAU2015/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fastropy-units-IAU2015/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kecnry%2Fastropy-units-IAU2015/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kecnry","download_url":"https://codeload.github.com/kecnry/astropy-units-IAU2015/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241444060,"owners_count":19963752,"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","astropy","units"],"created_at":"2024-10-11T15:12:35.558Z","updated_at":"2025-03-02T00:48:12.632Z","avatar_url":"https://github.com/kecnry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astropy-units-IAU2015\nlight wrapper around astropy.units that changes constants and units to match those in the IAU 2015 resolution.\n\nAs of astropy 2.0+, the IAU 2015 constants are adopted by default.  This module simply allows an astropy-version-independent way of ensuring that you are dealing with IAU 2015 constants.\n\nSee the following discussions on the [astropy](https://www.github.com/astropy/astropy) project:\n* [Implement updated IAU B3 2015 constants if approved](https://github.com/astropy/astropy/issues/4026)\n* [Organize constants into version modules](https://github.com/astropy/astropy/pull/6083)\n* [Implement updated IAU B3 2015 constants](https://github.com/astropy/astropy/pull/4397)\n* [astropy updated constants](https://github.com/astropy/astropy/pull/4956)\n\nIf you have astropy 2.0+ installed, this does essentially nothing (except introducing a solTeff unit and T_sun constant).  If, however, you have a version of astropy older than 2.0, it will hack the internal units to match IAU 2015 conventions.\n\nThis is currently only tested with python 2.7 and astropy 1.3.1.\n\n## Dependencies\n\n* [astropy](https://www.github.com/astropy/astropy)\n\n## Installation\n\nInstallation is done using the standard python setup.py commands.\n\nTo install globally:\n\n```\npython setup.py build\nsudo python setup.py install\n```\n\nOr to install locally:\n\n```\npython setup.py build\npython setup.py install --user\n```\n\n## Basic Usage\n\n```\nfrom unitsiau2015 import u, c\nprint c.G.value\n```\n\nNote that once unitsiau2015 is imported, the values within the astropy package will change as well (for that python session).  See [simple.py example](https://github.com/kecnry/astropy-units-IAU2015/blob/master/examples/simple.py) to see this in action.\n\n## Contributing\n\nContributions are welcome! Feel free to file an issue or fork and create a pull-request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkecnry%2Fastropy-units-iau2015","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkecnry%2Fastropy-units-iau2015","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkecnry%2Fastropy-units-iau2015/lists"}