Skip to main content

Python bindings for NCAR GLOW model

Project description

GLOW

The GLobal airglOW Model, independently and easily accessed from Fortran 2003 compiler. Optionally available from Python ≥ 3.7.

A Fortran compiler is REQUIRED.

Installation

Direct install using pip:

$ pip install glowpython

Install from source repository by:

$ git clone https://github.com/sunipkm/glowpython --recurse-submodules
$ cd glowpython && pip install .

Requires (and installs) geomagdata for timezone aware geomagnetic parameters retrieval.

Then use examples such as:

  • Maxwellian.py: Maxwellian precipiation, specify Q and E0.
  • Monoenergetic.py: Specify unit flux for one energy bin, all other energy bins are zero flux.
  • NoPrecipitation.py: No precipitating electrons.

or use GLOW in your own Python program by:

import glowpython as glow

iono = glow.maxwellian(time, glat, glon, Q, Echar, Nbins)

iono is an xarray.Dataset containing outputs from GLOW, including:

  • number densities of neutrals, ions and electrons
  • Pedersen and Hall currents
  • volume emssion rate vs. wavelength and altitude
  • precipitating flux vs. energy
  • many more, request if you want it.

All available keys carry unit and description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glowpython-3.0.0.tar.gz (469.4 kB view hashes)

Uploaded Source

Built Distribution

glowpython-3.0.0-cp39-cp39-macosx_11_0_arm64.whl (677.6 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page