{"id":24791777,"url":"https://github.com/aburrell/aacgmv2","last_synced_at":"2025-04-06T04:09:02.102Z","repository":{"id":55037396,"uuid":"42864636","full_name":"aburrell/aacgmv2","owner":"aburrell","description":"Python library for AACGM-v2 magnetic coordinates","archived":false,"fork":false,"pushed_at":"2024-12-31T15:24:14.000Z","size":3141,"stargazers_count":29,"open_issues_count":5,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T03:11:01.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/aburrell.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-21T12:22:45.000Z","updated_at":"2024-12-31T15:19:19.000Z","dependencies_parsed_at":"2025-02-05T20:17:09.493Z","dependency_job_id":"a9c2d6cf-4b11-4910-ad03-d2580129a89d","html_url":"https://github.com/aburrell/aacgmv2","commit_stats":{"total_commits":659,"total_committers":7,"mean_commits":94.14285714285714,"dds":"0.43247344461305004","last_synced_commit":"ab783359b95ca2ab089c9783b951e599ccccb6e8"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aburrell%2Faacgmv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aburrell%2Faacgmv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aburrell%2Faacgmv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aburrell%2Faacgmv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aburrell","download_url":"https://codeload.github.com/aburrell/aacgmv2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430868,"owners_count":20937874,"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-01-29T19:18:55.699Z","updated_at":"2025-04-06T04:09:02.079Z","avatar_url":"https://github.com/aburrell.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"========\nOverview\n========\n\n|docs| |version| |doi|\n\nThis is a Python wrapper for the `AACGM-v2 C library\n\u003chttps://superdarn.thayer.dartmouth.edu/aacgm.html\u003e`_, which allows\nconverting between geographic and magnetic coordinates. The currently included\nversion of the C library is 2.7.  The package is free software\n(MIT license).  When referencing this package, please cite both the package DOI\nand the AACGM-v2 journal article:\n\nShepherd, S. G. (2014), Altitude‐adjusted corrected geomagnetic coordinates:\nDefinition and functional approximations, Journal of Geophysical Research:\nSpace Physics, 119, 7501–7521, doi:10.1002/2014JA020264.\n\nQuick start\n===========\n\nInstall (requires NumPy)::\n\n    pip install aacgmv2\n\nConvert between AACGM and geographic coordinates::\n\n    \u003e\u003e\u003e import aacgmv2\n    \u003e\u003e\u003e import datetime as dt\n    \u003e\u003e\u003e import numpy as np\n    \u003e\u003e\u003e np.set_printoptions(formatter={'float_kind': lambda x:'{:.4f}'.format(x)})\n    \u003e\u003e\u003e # geo to AACGM, single numbers\n    \u003e\u003e\u003e dtime = dt.datetime(2013, 11, 3)\n    \u003e\u003e\u003e np.array(aacgmv2.get_aacgm_coord(60, 15, 300, dtime))\n    array([57.4736, 93.6111, 1.4816])\n    \u003e\u003e\u003e # AACGM to geo, mix arrays/numbers\n    \u003e\u003e\u003e np.array2string(np.array(aacgmv2.convert_latlon_arr([90, -90], 0, 0, dtime, method_code=\"A2G\"))).replace('\\n', '')\n    '[[82.9686 -74.3390] [-84.6501 125.8476] [14.1246 12.8772]]'\n\nConvert between AACGM and MLT::\n\n    \u003e\u003e\u003e import aacgmv2\n    \u003e\u003e\u003e import datetime as dt\n    \u003e\u003e\u003e import numpy as np\n    \u003e\u003e\u003e np.set_printoptions(formatter={'float_kind': lambda x:'{:.4f}'.format(x)})\n    \u003e\u003e\u003e # MLT to AACGM\n    \u003e\u003e\u003e dtime = dt.datetime(2013, 11, 3, 0, 0, 0)\n    \u003e\u003e\u003e np.array(aacgmv2.convert_mlt([1.4822189, 12], dtime, m2a=True))\n    array([93.6203, -108.6130])\n\nIf you don't know or use Python, you can also use the command line. See details\nin the full documentation.\n\nDocumentation\n=============\n\nhttps://aacgmv2.readthedocs.io/en/latest/\n\nhttps://superdarn.thayer.dartmouth.edu/aacgm.html\n\nBadges\n======\n\n.. list-table::\n    :stub-columns: 1\n\n    * - docs\n      - |docs| |links|\n    * - tests\n      - | |ga| |coveralls|\n        | |codeclimate| |scrutinizer| |codacy|\n    * - package\n      - | |version| |supported-versions|\n        | |wheel| |supported-implementations|\n\n.. |docs| image:: https://readthedocs.org/projects/aacgmv2/badge/?version=latest\n    :target: https://aacgmv2.readthedocs.io/en/latest/?badge=latest\n    :alt: RTD Documentation Status\n\n.. |links| image:: https://github.com/aburrell/aacgmv2/actions/workflows/docs.yml/badge.svg\n    :target: https://github.com/aburrell/aacgmv2/actions/workflows/docs.yml\n    :alt: GitHub Actions Documentation Status\n\n.. |ga| image:: https://github.com/aburrell/aacgmv2/actions/workflows/main.yml/badge.svg\n    :alt: GitHub Actions-CI Build Status\n    :target: https://github.com/aburrell/aacgmv2/actions/workflows/main.yml\n\n.. |coveralls| image:: https://s3.amazonaws.com/assets.coveralls.io/badges/coveralls_97.svg\n    :alt: Coverage Status (Coveralls)\n    :target: https://coveralls.io/github/aburrell/aacgmv2\n\n.. |codacy| image:: https://api.codacy.com/project/badge/Grade/510602761f7f4a5a97a9d754e65f6f28\n    :alt: Codacy Code Quality Status\n    :target: https://app.codacy.com/gh/aburrell/aacgmv2?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=aburrell/aacgmv2\u0026utm_campaign=Badge_Grade\n\n.. |codeclimate| image:: https://api.codeclimate.com/v1/badges/91f5a91bf3d9ba90cb57/maintainability.svg\n   :target: https://codeclimate.com/github/aburrell/aacgmv2/builds\n   :alt: CodeClimate Quality Status\n\n.. |version| image:: https://img.shields.io/pypi/v/aacgmv2.svg?style=flat\n    :alt: PyPI Package latest release\n    :target: https://pypi.org/project/aacgmv2/\n\n.. |downloads| image:: https://img.shields.io/pypi/dm/aacgmv2.svg?style=flat\n    :alt: PyPI Package monthly downloads\n    :target: https://pypi.org/project/aacgmv2/\n\n.. |wheel| image:: https://img.shields.io/pypi/wheel/aacgmv2.svg?style=flat\n    :alt: PyPI Wheel\n    :target: https://pypi.org/project/aacgmv2/\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/aacgmv2.svg?style=flat\n    :alt: Supported versions\n    :target: https://pypi.org/project/aacgmv2/\n\n.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/aacgmv2.svg?style=flat\n    :alt: Supported implementations\n    :target: https://pypi.org/project/aacgmv2/\n\n.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/aburrell/aacgmv2/main.svg?style=flat\n    :alt: Scrutinizer Status\n    :target: https://scrutinizer-ci.com/g/aburrell/aacgmv2/\n\n.. |doi| image:: https://zenodo.org/badge/doi/10.5281/zenodo.3598705.svg\n   :alt: DOI\n   :target: https://zenodo.org/record/3598705\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faburrell%2Faacgmv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faburrell%2Faacgmv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faburrell%2Faacgmv2/lists"}