{"id":13520992,"url":"https://github.com/GalacticDynamics/coordinax","last_synced_at":"2025-03-31T20:30:23.992Z","repository":{"id":221914447,"uuid":"755708966","full_name":"GalacticDynamics/coordinax","owner":"GalacticDynamics","description":"Coordinates in JAX","archived":false,"fork":false,"pushed_at":"2025-03-04T04:47:00.000Z","size":1714,"stargazers_count":17,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T13:51:16.124Z","etag":null,"topics":["coordinate-systems","coordinate-transformation","coordinates","jax"],"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/GalacticDynamics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-10T21:21:00.000Z","updated_at":"2025-03-04T04:47:04.000Z","dependencies_parsed_at":"2024-05-20T20:16:59.004Z","dependency_job_id":"66fcd129-0b52-4858-bf13-4e66b0d70546","html_url":"https://github.com/GalacticDynamics/coordinax","commit_stats":null,"previous_names":["galacticdynamics/vector","galacticdynamics/coordinax"],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fcoordinax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fcoordinax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fcoordinax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fcoordinax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GalacticDynamics","download_url":"https://codeload.github.com/GalacticDynamics/coordinax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246535707,"owners_count":20793308,"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":["coordinate-systems","coordinate-transformation","coordinates","jax"],"created_at":"2024-08-01T06:00:25.681Z","updated_at":"2025-03-31T20:30:23.985Z","avatar_url":"https://github.com/GalacticDynamics.png","language":"Python","readme":"\u003ch1 align='center'\u003e coordinax \u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eCoordinates in JAX\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/coordinax/\"\u003e \u003cimg alt=\"PyPI: coordinax\" src=\"https://img.shields.io/pypi/v/coordinax?style=flat\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/coordinax/\"\u003e \u003cimg alt=\"PyPI versions: coordinax\" src=\"https://img.shields.io/pypi/pyversions/coordinax\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://coordinax.readthedocs.io/en/\"\u003e \u003cimg alt=\"ReadTheDocs\" src=\"https://img.shields.io/badge/read_docs-here-orange\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/coordinax/\"\u003e \u003cimg alt=\"coordinax license\" src=\"https://img.shields.io/github/license/GalacticDynamics/coordinax\" /\u003e \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/GalacticDynamics/coordinax/actions\"\u003e \u003cimg alt=\"CI status\" src=\"https://github.com/GalacticDynamics/coordinax/workflows/CI/badge.svg\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://coordinax.readthedocs.io/en/\"\u003e \u003cimg alt=\"ReadTheDocs\" src=\"https://readthedocs.org/projects/coordinax/badge/?version=latest\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/GalacticDynamics/coordinax\"\u003e \u003cimg alt=\"codecov\" src=\"https://codecov.io/gh/GalacticDynamics/coordinax/graph/badge.svg\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://scientific-python.org/specs/spec-0000/\"\u003e \u003cimg alt=\"ruff\" src=\"https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811\u0026color=%235CA038\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://docs.astral.sh/ruff/\"\u003e \u003cimg alt=\"ruff\" src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json\" /\u003e \u003c/a\u003e\n    \u003ca href=\"https://pre-commit.com\"\u003e \u003cimg alt=\"pre-commit\" src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\" /\u003e \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nCoordinax enables calculations with coordinates in\n[JAX](https://jax.readthedocs.io/en/latest/). Built on\n[Equinox](https://docs.kidger.site/equinox/) and\n[Quax](https://github.com/patrick-kidger/quax).\n\n## Installation\n\n[![PyPI platforms][pypi-platforms]][pypi-link]\n[![PyPI version][pypi-version]][pypi-link]\n\n\u003c!-- [![Conda-Forge][conda-badge]][conda-link] --\u003e\n\n```bash\npip install coordinax\n```\n\n## Documentation\n\n[![Read The Docs](https://img.shields.io/badge/read_docs-here-orange)](https://unxt.readthedocs.io/en/)\n\nComing soon. In the meantime, if you've used `astropy.coordinates`, then\n`coordinax` should be fairly intuitive.\n\n## Quick example\n\n```python\nimport jax.numpy as jnp\nimport unxt as u\nimport coordinax as cx\n\nq = cx.CartesianPos3D(\n    x=u.Quantity(jnp.arange(0, 10.0), \"km\"),\n    y=u.Quantity(jnp.arange(5, 15.0), \"km\"),\n    z=u.Quantity(jnp.arange(10, 20.0), \"km\"),\n)\nprint(q)\n# \u003cCartesianPos3D (x[km], y[km], z[km])\n#     [[ 0.  5. 10.]\n#      [ 1.  6. 11.]\n#      ...\n#      [ 8. 13. 18.]\n#      [ 9. 14. 19.]]\u003e\n\nq2 = cx.vconvert(cx.SphericalPos, q)\nprint(q2)\n# \u003cSphericalPos (r[km], theta[rad], phi[rad])\n#     [[11.18   0.464  1.571]\n#      [12.57   0.505  1.406]\n#      ...\n#      [23.601  0.703  1.019]\n#      [25.259  0.719  0.999]]\u003e\n\np = cx.CartesianVel3D(\n    d_x=u.Quantity(jnp.arange(0, 10.0), \"m/s\"),\n    d_y=u.Quantity(jnp.arange(5, 15.0), \"m/s\"),\n    d_z=u.Quantity(jnp.arange(10, 20.0), \"m/s\"),\n)\nprint(p)\n# \u003cCartesianVel3D (x[m / s], y[m / s], z[m / s])\n#     [[ 0.  5. 10.]\n#      [ 1.  6. 11.]\n#      ...\n#      [ 8. 13. 18.]\n#      [ 9. 14. 19.]]\u003e\n\np2 = cx.vconvert(cx.SphericalVel, p, q)\nprint(p2)\n# \u003cSphericalVel (r[m / s], theta[m rad / (km s)], phi[m rad / (km s)])\n#     [[ 1.118e+01 -3.886e-16  0.000e+00]\n#      [ 1.257e+01 -1.110e-16  0.000e+00]\n#      ...\n#      [ 2.360e+01  0.000e+00  0.000e+00]\n#      [ 2.526e+01 -2.776e-16  0.000e+00]]\u003e\n```\n\n## Citation\n\n[![DOI][zenodo-badge]][zenodo-link]\n\nIf you found this library to be useful in academic work, then please cite.\n\n## Development\n\n[![Actions Status][actions-badge]][actions-link]\n[![Documentation Status][rtd-badge]][rtd-link]\n[![codecov][codecov-badge]][codecov-link]\n[![SPEC 0 — Minimum Supported Dependencies][spec0-badge]][spec0-link]\n[![pre-commit][pre-commit-badge]][pre-commit-link]\n[![ruff][ruff-badge]][ruff-link]\n\nWe welcome contributions!\n\n\u003c!-- prettier-ignore-start --\u003e\n[actions-badge]:            https://github.com/GalacticDynamics/coordinax/workflows/CI/badge.svg\n[actions-link]:             https://github.com/GalacticDynamics/coordinax/actions\n[codecov-badge]:            https://codecov.io/gh/GalacticDynamics/unxt/graph/badge.svg\n[codecov-link]:             https://codecov.io/gh/GalacticDynamics/unxt\n[pre-commit-badge]:         https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\n[pre-commit-link]:          https://pre-commit.com\n[pypi-link]:                https://pypi.org/project/coordinax/\n[pypi-platforms]:           https://img.shields.io/pypi/pyversions/coordinax\n[pypi-version]:             https://img.shields.io/pypi/v/coordinax\n[rtd-badge]:                https://readthedocs.org/projects/coordinax/badge/?version=latest\n[rtd-link]:                 https://coordinax.readthedocs.io/en/latest/?badge=latest\n[ruff-badge]:               https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json\n[ruff-link]:                https://docs.astral.sh/ruff/\n[spec0-badge]:              https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811\u0026color=%235CA038\n[spec0-link]:               https://scientific-python.org/specs/spec-0000/\n[zenodo-badge]:             https://zenodo.org/badge/755708966.svg\n[zenodo-link]:              https://zenodo.org/doi/10.5281/zenodo.10850557\n\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":[],"categories":["Models and Projects"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGalacticDynamics%2Fcoordinax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGalacticDynamics%2Fcoordinax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGalacticDynamics%2Fcoordinax/lists"}