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.

Note: This version uses meson and ninja as the build system, and does not rely on distutils, and is Python 3.12 compatible.

Installation

Note: For macOS Big Sur and above, add the following line to your environment script (~/.zshrc if using ZSH, or the relevant shell init script):

export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"

Then reopen the terminal. This fixes the issue where -lSystem fails for gfortran. Additionally, installation of gfortran using homebrew is required.

Direct installation using pip:

$ pip install glowpython

Install from source repository by:

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

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

Then use examples such as:

  • Examples/Maxwellian.py: Maxwellian precipitation, specify Q (flux) and E0 (characteristic energy).
  • Examples/NoPrecipitation.py: No precipitating electrons.

These examples are also available on the command line: GlowMaxwellian and GlowNoPrecip.

Or, use GLOW in your own Python program by:

import glowpython as glow

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

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

  • number densities of neutrals, ions and electrons
  • Pedersen and Hall currents
  • volume emission rate vs. wavelength and altitude
  • precipitating flux vs. energy
  • production and loss rates
  • solar flux and wavelength ranges
  • electron energy deposition

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.6.0.tar.gz (534.2 kB view details)

Uploaded Source

File details

Details for the file glowpython-3.6.0.tar.gz.

File metadata

  • Download URL: glowpython-3.6.0.tar.gz
  • Upload date:
  • Size: 534.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for glowpython-3.6.0.tar.gz
Algorithm Hash digest
SHA256 b791c3ef2dab991e26faf882091556afa4d20be79a089a0a44c6e903e5778052
MD5 6d6db9f6bee052193d6f4c51a2ebaa2a
BLAKE2b-256 30678e231bbb771d83b10c0a8e32700f02b534428992bbf72911827bfcccedbf

See more details on using hashes here.

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