{"id":22903090,"url":"https://github.com/space-physics/ncar-glow","last_synced_at":"2025-12-14T19:17:40.909Z","repository":{"id":57445204,"uuid":"162534283","full_name":"space-physics/NCAR-GLOW","owner":"space-physics","description":"CMake, Meson, Matlab, Python additions to GLOW. NCAR wants to publish only base code.","archived":false,"fork":false,"pushed_at":"2024-01-14T21:14:01.000Z","size":729,"stargazers_count":9,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-07T04:34:28.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/NCAR/GLOW","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.txt","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},"funding":{"github":["scivision"],"ko_fi":"scivision"}},"created_at":"2018-12-20T06:05:42.000Z","updated_at":"2024-10-14T09:02:20.000Z","dependencies_parsed_at":"2025-02-07T04:32:14.231Z","dependency_job_id":"f08cd414-7caf-461f-aa1b-21639d3d67aa","html_url":"https://github.com/space-physics/NCAR-GLOW","commit_stats":{"total_commits":137,"total_committers":3,"mean_commits":"45.666666666666664","dds":"0.058394160583941646","last_synced_commit":"2c099fdc2bd02b69fd1c3f36e1cc603ad3d34336"},"previous_names":["scivision/ncar-glow"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FNCAR-GLOW","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FNCAR-GLOW/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FNCAR-GLOW/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-physics%2FNCAR-GLOW/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/space-physics","download_url":"https://codeload.github.com/space-physics/NCAR-GLOW/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246598190,"owners_count":20802975,"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:20.227Z","updated_at":"2025-12-14T19:17:40.824Z","avatar_url":"https://github.com/space-physics.png","language":"Fortran","funding_links":["https://github.com/sponsors/scivision","https://ko-fi.com/scivision"],"categories":[],"sub_categories":[],"readme":"# GLOW\n\n[![DOI](https://zenodo.org/badge/162534283.svg)](https://zenodo.org/badge/latestdoi/162534283)\n[![Actions Status](https://github.com/scivision/NCAR-GLOW/workflows/ci/badge.svg)](https://github.com/scivision/NCAR-GLOW/actions)\n\nThe GLobal airglOW Model, independently and easily accessed using Fortran compiler.\nAvailable from scripting languages including Python and Matlab.\n\nWe describe each language below; pick the one(s) that apply for you.\nPython is the easiest and recommennded choice.\nA Fortran compiler is required in any case.\n\n## Python\n\nInstall/compile by:\n\n```sh\ngit clone https://github.com/space-physics/ncar-glow\n\npip install -e ncar-glow\n```\n\nConfirm the install with:\n\n```sh\npytest ncar-glow\n```\n\nThen use examples such as:\n\n* [Maxwellian.py](https://github.com/space-physics/NCAR-GLOW/blob/main/Examples/Maxwellian.py): Maxwellian precipiation, specify Q and E0.\n* [Monoenergetic.py](https://github.com/space-physics/NCAR-GLOW/blob/main/Examples/Monoenergetic.py): Specify unit flux for one energy bin, all other energy bins are zero flux.\n\nor use GLOW in your own Python program by:\n\n```python\nimport ncarglow as glow\n\niono = glow.simple(time, glat, glon, Q, Echar, Nbins)\n```\n\n`iono` is an\n[xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html)\ncontaining outputs from GLOW, including:\n\n* number densities of neutrals, ions and electrons\n* Pedersen and Hall currents\n* volume emssion rate vs. wavelength and altitude\n* precipitating flux vs. energy\n* many more, request if you want it.\n\n## Fortran standalone\n\nYou can call this repo from a Meson wrap or CMake FetchContent.\nTo build Fortran code by itself, do either:\n\n```sh\ncmake -B build\n\ncmake --build build\n```\n\n### MPI / NetCDF\n\nThe parallel version of GLOW requires MPI and NetCDF for TIEGCM I/O.\n```sh\nmpirun -np 2 ./mpi_glow.bin \u003c ~/data/in.namelist.tgcm\n```\n\nNote, for an unknown reason, `in.namelist.msis` only works with -O0 or -O1 with gfortran 7. We didn't look into why.\nOtherwise, -O3 works fine.\n\n## Matlab\n\nThe Matlab interface is in\n[+ncarglow](./+ncarglow/)\npassing data to / from Glow over scratch disk binary files.\n\n* Use built-in energy and altitude bins: [Maxwellian.m](./Examples/Maxwellian.m)\n* user input energy grid: [Monoenergetic.m](./Examples/Monoenergetic.m)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-physics%2Fncar-glow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspace-physics%2Fncar-glow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-physics%2Fncar-glow/lists"}