{"id":22903125,"url":"https://github.com/space-physics/apex-python","last_synced_at":"2025-04-01T07:21:20.069Z","repository":{"id":80566337,"uuid":"271229080","full_name":"space-physics/apex-python","owner":"space-physics","description":"clean Python interface to Apex without f2py--compute millions of points per second on laptop.","archived":false,"fork":false,"pushed_at":"2021-08-02T05:35:28.000Z","size":66,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T04:34:29.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/NCAR/apex_fortran","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-10T09:00:57.000Z","updated_at":"2024-10-15T17:08:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4a71443-e327-4186-9c01-1c271c85161e","html_url":"https://github.com/space-physics/apex-python","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"7ff289519c19efe02dfaf2aabddd91f1eb122463"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2Fapex-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2Fapex-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2Fapex-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2Fapex-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/space-physics","download_url":"https://codeload.github.com/space-physics/apex-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246598193,"owners_count":20802976,"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":"2024-12-14T02:33:59.866Z","updated_at":"2025-04-01T07:21:20.043Z","avatar_url":"https://github.com/space-physics.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apex-python\n\n![Actions Status](https://github.com/space-physics/apex-python/workflows/ci/badge.svg)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/space-physics/apex-python.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/space-physics/apex-python/context:python)\n\nclean Python interface to Apex without f2py--compute millions of points per second on laptop.\n\n\n## setup\n\nApexPy3 will build automatically using CMake on the first run.\nAs usual with Python packages, install in development mode by:\n\n```sh\npip install -e .\n```\n\nor\n\n```sh\npython setup.py develop --user\n```\n\n## Usage\n\nTypically, users would input Numpy ndarray of arbitrary dimension and shape.\nThere is a fixed setup time for Apex of 5-10 seconds, but then it only takes about 100 ns per point.\nThus it behooves the user to feed in a large array of points once, rather than call repeatedly.\n\n```python\nimport apexpy3\n\ndat = apexpy3.geo2mag(yeardec=2018.5, glat=40, glon=-105)\n\nprint(dat)\n```\n\n\u003e {'gmlat': array([47.7939873]), 'gmlon': array([-37.5895653])}\n\n### Benchmark\n\nJust to show raw Fortran speed\n\n```sh\n./build/apex_benchmark 40. 25. 2020.\n```\n\ncoordinate conversion (geographic to geomag) ~ 100 ns per point on modest laptop with Gfortran or Intel oneAPI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-physics%2Fapex-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspace-physics%2Fapex-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-physics%2Fapex-python/lists"}