Provides simple APIs to calculate neutral density values using the NOAA Whole Atmosphere Model-Ionosphere Plasmasphere Electrodynamics (WAM-IPE) model
Project description
Project Overview
This software package is a collaboration between the National Oceanic and Atmospheric Administration Space Weather Prediction Center (NOAA SWPC) and App Dev Club LLC at the University of Maryland. Using outputs from the Whole Atmosphere Model-Ionosphere Plasmasphere Electrodynamics (WAM-IPE) model, it allows users to input date, time, and satellite location (longitude + latitude) and output the neutral density value near the satellite at that date and time.
Prerequisites
Installation of latest package versions of netCDF4, numpy, scipy, and requests.
Usage
To install the package, open the terminal of a code editor and run the following command.
Update this command after each package version change to keep documentation up to date.
pip install swpc-wamipe
To print a density value run the following code:
from wam_api import WAMInterpolator
foo = WAMInterpolator()
dt = foo.datetime(2024, 5, 11, 18, 12, 22)
lat, lon, alt = -33.4, -153.24, 550.68 # degrees north, degrees east, km
my_density = foo.get_density(dt, lat, lon, alt)
print(my_density)
Updating the package version
To update the package version on PyPI from local with any changes you have made to the project,
first change the version number
in pyproject.toml.
Next, run the following commands in order:
pip install -e .
pip install --upgrade build
python -m build
pip install --upgrade twine
python -m twine upload --repository testpypi dist/*
A new version of the package will be created in PyPI. To make sure you have the latest package version installed in local run the following command:
pip install wam_api --upgrade
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swpc_wamipe-0.0.1.tar.gz.
File metadata
- Download URL: swpc_wamipe-0.0.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eec23d7f6abd21e3126677a44967d4b36a3fccdfa4f8190f182d740db7a313b
|
|
| MD5 |
50eee03c0e6415f3a75eb9919190d542
|
|
| BLAKE2b-256 |
99569e44d4910bdeeae19e5b2b5453e7606c45351954235aa5f20961652b7947
|
File details
Details for the file swpc_wamipe-0.0.1-py3-none-any.whl.
File metadata
- Download URL: swpc_wamipe-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6421fe2cf87931955037e7cd7982ff9cbcd5c62b35ece4a6c1282c53dce36e84
|
|
| MD5 |
e25181172e9fbcba25b1e0233acf8028
|
|
| BLAKE2b-256 |
7adcab2bb2a3d07d8d50acff51e55ce3415f219bedbb64682ea60ee7a1c58096
|