{"id":22903117,"url":"https://github.com/space-physics/wmm2015","last_synced_at":"2025-07-11T17:45:59.462Z","repository":{"id":47368832,"uuid":"134604711","full_name":"space-physics/WMM2015","owner":"space-physics","description":"World Magnetic Model 2015 from Python","archived":false,"fork":false,"pushed_at":"2021-10-11T03:42:43.000Z","size":3328,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T06:26:03.591Z","etag":null,"topics":["build-on-run","geomagnetic"],"latest_commit_sha":null,"homepage":"https://github.com/space-physics/wmm2020","language":"C","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/space-physics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-23T17:34:51.000Z","updated_at":"2024-10-14T09:02:57.000Z","dependencies_parsed_at":"2022-08-22T07:01:37.254Z","dependency_job_id":null,"html_url":"https://github.com/space-physics/WMM2015","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FWMM2015","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FWMM2015/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FWMM2015/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FWMM2015/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/space-physics","download_url":"https://codeload.github.com/space-physics/WMM2015/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253112078,"owners_count":21856070,"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":["build-on-run","geomagnetic"],"created_at":"2024-12-14T02:33:57.384Z","updated_at":"2025-05-08T16:55:03.742Z","avatar_url":"https://github.com/space-physics.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WMM2015\n\n![Actions Status](https://github.com/space-physics/wmm2015/workflows/ci/badge.svg)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/space-physics/WMM2015.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/space-physics/WMM2015/context:python)\n[![Python versions (PyPI)](https://img.shields.io/pypi/pyversions/wmm2015.svg)](https://pypi.python.org/pypi/wmm2015)\n[![Downloads](http://pepy.tech/badge/wmm2015)](http://pepy.tech/project/wmm2015)\n\n\nWMM2015 World Magnetic Model...in simple, object-oriented Python.\n[WMM2020](https://github.com/space-physics/wmm2020) is also available.\nTested on Linux, Mac and Windows.\nMost C compilers work.\nAt this time Visual Studio is not supported since MSVC doesn't export function symbols without additional headers,\nwhich is typically done with something like SWIG.\n\n![image](./src/wmm2015/tests/incldecl.png)\n\n## Install\n\nfor the latest release from PyPi:\n\n```sh\npython -m pip install wmm2015\n```\n\nOptionally, to get the cutting-edge development version:\n\n```sh\ngit clone https://github.com/space-physics/wmm2015\n\npython -m pip install -e wmm2015\n```\n\nThis Python wrapper of WMM2015 uses our build-on-run technique.\nThe first time you use WMM2015, you will see messages from the build system and C compiler.\n\n\n## Usage\n\nan example script\n\n```sh\npython RunWMM2015.py\n```\n\nor as a Python module:\n\n```python\nimport wmm2015\n\nmag = wmm2015.wmm(glat, glon, alt_km, yeardec)\n```\n\n## Reference\n\n* WMM2015 [inclination map](https://www.ngdc.noaa.gov/geomag/WMM/data/WMM2015/WMM2015_I_MERC.pdf)\n* WMM2015 [declination map](https://www.ngdc.noaa.gov/geomag/WMM/data/WMM2015/WMM2015_D_MERC.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-physics%2Fwmm2015","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspace-physics%2Fwmm2015","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-physics%2Fwmm2015/lists"}