HWM93 in Python
NASA Horizontal Wind Model HWM93 in Python ≥ 3.6
Works with many Fortran compilers, including:
- Gfortran 5, 6, 7, 8
- Intel
ifort - PGI
pgf90 - Nvidia
flang
Install
pip install -e .
test by
pytest -sv
Usage
HWM93 can be used from the command line or as an imported Python module in other programs. Matlab ≥ R2014b also can use HWM93.
Command line
RunHWM93 -h
Write data to NetCDF (HDF5) with -o option.
import module
import hwm93
from datetime import datetime
winds = hwm93.run(t=datetime(2017,11,12,8), altkm=150.,
glat=65., glon=-148., f107a=150, f107=150, ap=4)
winds is an xarray.Dataset
<xarray.Dataset>
Dimensions: (alt_km: 1)
Coordinates:
* alt_km (alt_km) float64 150.0
Data variables:
meridional (alt_km) float64 4.827
zonal (alt_km) float64 -20.5
Attributes:
time: 2017-11-12T08:00:00
glat: 65.0
glon: -148.0
If you want just a single variable, say
print(winds.zonal.values)
Matlab
You can import this Python module from Matlab ≥ R2014b as in hwm93.m
Notes
[Optional] Fortran-only use
Most users don't need this.
cd bin
cmake ..
cmake --build .
ctest -V
or
f2py -c src/hwm93_sub.f -m hwm93 only: gws5 :
Reference
Original A. E. Hedin Fortran 77 HWM93 code
Metadata
Release files for hwm93 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hwm93-0.9.1.tar.gz | 23.0 kB | Without provenance | Details for hwm93-0.9.1.tar.gz |
Release files / hwm93-0.9.1.tar.gz
| Download URL | hwm93-0.9.1.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffef80911b5abe51c743286a4c5b5ddfa5289e48a8fd8809fa55735e7013d3b9
|
|
BLAKE2b-256 checksum How to use checksums |
b5b224957d7cda05437e9fab3c707dedc23fd0425c8c193cc4a591566a0591a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.7.0
|
Security for hwm93 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.